Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

monsterdream's avatar

Every artisan command leave log about "$defaultName"

Hi guys,

(Newest Laravel 9) I have interesting issue and I can't find any topic related to that in google.

In Telescope, after every php artisan command run it's leaving me a message. And it doesn't matter if it's my command or build in like php artisan view:cache.

Since symfony/console 6.1: Relying on the static property "$defaultName" for setting a command name is deprecated. Add the "Symfony\Component\Console\Attribute\AsCommand" attribute to the "RoachPHP\Shell\Repl" class instead. in /home/forge/xxx/vendor/symfony/deprecation-contracts/function.php on line 25

0 likes
2 replies
Snapey's avatar

do you have some of your own artisan commands?

monsterdream's avatar

Of course that I have, do you think that it matters? I can see that there was some problem but it has been solved on Laravel side with adding #[AsCommand(name: 'view:cache')] but calling that command, still throwing that message, that's interesting.

Please or to participate in this conversation.