8000 feat: add type hints for $this in routes/console.php (#6559) · laravel/laravel@1390672 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1390672

Browse files
AJenbotaylorotwell
andauthored
feat: add type hints for $this in routes/console.php (#6559)
* feat: add type hints for $this in routes/console.php * Update console.php * Update console.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 540728e commit 1390672

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/console.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22

3+
use Illuminate\Foundation\Console\ClosureCommand;
34
use Illuminate\Foundation\Inspiring;
45
use Illuminate\Support\Facades\Artisan;
56

67
Artisan::command('inspire', function () {
8+
/** @var ClosureCommand $this */
79
$this->comment(Inspiring::quote());
810
})->purpose('Display an inspiring quote');

0 commit comments

Comments
 (0)
0