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:
Anders Jenbo
2025-03-04 16:48:56 +01:00
committed by GitHub
parent 540728ed96
commit 1390672302

View File

@@ -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');