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 <[email protected]>
This commit is contained in:
co-authored by
Taylor Otwell
parent
540728ed96
commit
1390672302
@@ -1,8 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Console\ClosureCommand;
|
||||||
use Illuminate\Foundation\Inspiring;
|
use Illuminate\Foundation\Inspiring;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
|
|
||||||
Artisan::command('inspire', function () {
|
Artisan::command('inspire', function () {
|
||||||
|
/** @var ClosureCommand $this */
|
||||||
$this->comment(Inspiring::quote());
|
$this->comment(Inspiring::quote());
|
||||||
})->purpose('Display an inspiring quote');
|
})->purpose('Display an inspiring quote');
|
||||||
|
|||||||
Reference in New Issue
Block a user