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