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

Chrizzmeister's avatar

Php artisan tinker not running

Hi , when i do

php artisan tinker

i get the following error:

 [Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'Psy\CodeCleaner\StrictTypesPass' not found

Maybe an important notice is that i am using MAMP instead of homestead to run it.

My website itself is running fine without errors.

0 likes
5 replies
nitesh0909's avatar

I have checked ... doesn't seems to be any problem with them.

ricardovigatti's avatar

Did you already tried composer update composer dump-autoload or composer clear-cache ?

Chrizzmeister's avatar

Since i am using Laravel Valet this issue has solved itself . So it seems it was related to MAMP . Still not sure what the actual reason is.

Please or to participate in this conversation.