- Laravel Version: v9.7.0
- PHP Version: 8.0.17
- Database Driver & Version: Not applicable
Description:
Adding a description/name to CallbackEvent is ignored on the schedule:list command, the closure location is printed.
Seems to have broken by #41535
Steps To Reproduce:
Add the following in app/Console/Kernel.php
$schedule
->call(function() {
//Do stuff here
})
->name('My pretty description');
The following is printed when running php artisan schedule:list
* * * * * Closure at: app\Console\Kernel.php:32 ................................................... Next Due: 34 seconds from now
Expected output is
* * * * * My pretty description ................................................... Next Due: 34 seconds from now