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

gjsman's avatar

PHP Artisan Tinker crashing from any command

I haven't had this problem before, but my php artisan tinker crashes from issuing any command - and leaves no logs whatsoever on what is causing the crash.

project4 $ php artisan tinker
Psy Shell v0.9.9 (PHP 7.3.0 — cli) by Justin Hileman
>>> use \App\Jobs\testJob;
project4 $

or even the simplest command:

project4 $ php artisan tinker
Psy Shell v0.9.9 (PHP 7.3.0 — cli) by Justin Hileman
>>> print("Hello World!");
project4 $

I almost wonder if it isn't connecting to PHP correctly, but I can't find any logs anywhere. Laravel has no trace of the commands. I ran brew update, but no difference. For the record, all of my projects are affected. I can't tinker on any of my projects. Help!

I did recently upgrade to PHP 7.3.0, which is working fine in every other area. Hmm...

0 likes
3 replies
realrandyallen's avatar

There’s been a few people having issues with 7.3 - you may want to go back down to 7.2 and see if it resolves your issue.

gjsman's avatar

@realrandyallen That appears to kind of work and fix the issue. The only problem I have now is that I need to install php 7.2 by using brew install [email protected], but then Laravel Valet freaks out that it can't find PHP.

benyou1969's avatar

Try creating a file at ~/.config/psysh/config.php if not already there.

<?php
   return [
  'usePcntl' => false,
];

source

3 likes

Please or to participate in this conversation.