Hi, I'm having trouble resolving an issue I'm having with 'php artisan tinker'. When I run tinker, I get the following:
$ php artisan tinker
PHP Fatal error: Cannot use PhpParser\Node\Scalar\String as String because 'String' is a special class name in /home/vagrant/Code/jobscan2/vendor/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php on line 19
[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot use PhpParser\Node\Scalar\String as String because 'String' is a special class name
I'm using Laravel 5.0 and my site seems to be running fine with php7, but tinker doesn't work. Has anyone encountered this / know how to resolve it? I've run 'composer update', but it hasn't helped. From what I can tell in composer.lock:
laravel/framework 5.0.34 requires psy/psysh 0.4.*
psy/psych 0.4.4 then requires nikic/php-parser ~1.0
But this doesn't seem to be compatible with php7 (according to https://github.com/nikic/PHP-Parser, I should be using 2.0+). Are people successfully using php artisan tinker from laravel 5.0 on php7? Any ideas what I need to do to fix tinker? Thanks in advance.