Skip to content

Commit 92b82dc

Browse files
committed
Fix typo
1 parent af6aec6 commit 92b82dc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Bootstrapper.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function isBooted(): bool
4444

4545
/**
4646
* @throws BindingResolutionException
47+
*
48+
* @noinspection OffsetOperationsInspection
4749
*/
4850
public function boot(): void
4951
{
@@ -158,13 +160,18 @@ protected function getBacktraces(int $limit = 0, int $forgetLines = 0): array
158160
* @throws \Illuminate\Contracts\Container\BindingResolutionException
159161
*
160162
* @noinspection PhpUndefinedMethodInspection
163+
* @noinspection OffsetOperationsInspection
161164
*/
162165
protected function registerOutputMonitor(Container $app): void
163166
{
164167
// 注册输出监听
165-
$app['events']->listen(CommandFinished::class, function (CommandFinished $commandFinished) use ($app): void {
166-
$app->make(OutputManager::class)->output($this->getScores(), $commandFinished);
167-
});
168+
$app['events']->listen(
169+
CommandFinished::class,
170+
fn (CommandFinished $commandFinished) => $app->make(OutputManager::class)->output(
171+
$this->getScores(),
172+
$commandFinished
173+
)
174+
);
168175

169176
// 注册输出中间件
170177
is_lumen()

0 commit comments

Comments
 (0)