Good day!
I encountered this only on windows and not in Unix.
Thank you
PS D:\www\backend> php artisan tinker -vv
Psy Shell v0.11.9 (PHP 8.1.12 — cli) by Justin Hileman
> \App\Models\User:first()
PARSE ERROR PHP Parse error: Syntax error, unexpected ':' in vendor\psy\psysh\src\Exception\ParseErrorException.php on line 40.
--
<class></class>() at vendor\psy\psysh\src\Exception\ParseErrorException.php:40
<class>Psy\Exception\ParseErrorException</class>::fromParseError() at vendor\psy\psysh\src\CodeCleaner.php:340
<class>Psy\CodeCleaner</class>->parse() at vendor\psy\psysh\src\CodeCleaner.php:267
<class>Psy\CodeCleaner</class>->clean() at vendor\psy\psysh\src\Shell.php:866
<class>Psy\Shell</class>->addCode() at vendor\psy\psysh\src\Shell.php:549
<class>Psy\Shell</class>->getInput() at vendor\psy\psysh\src\ExecutionLoopClosure.php:40
<class></class>Psy\{closure}() at vendor\psy\psysh\src\ExecutionClosure.php:89
<class>Psy\ExecutionClosure</class>->execute() at vendor\psy\psysh\src\Shell.php:395
<class>Psy\Shell</class>->doInteractiveRun() at vendor\psy\psysh\src\Shell.php:366
<class>Psy\Shell</class>->doRun() at vendor\symfony\console\Application.php:168
<class>Symfony\Component\Console\Application</class>->run() at vendor\psy\psysh\src\Shell.php:341
<class>Psy\Shell</class>->run() at vendor\laravel\tinker\src\Console\TinkerCommand.php:85
<class>Laravel\Tinker\Console\TinkerCommand</class>->handle() at vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
<class>Illuminate\Container\BoundMethod</class>::Illuminate\Container\{closure}() at vendor\laravel\framework\src\Illuminate\Container\Util.php:41
<class>Illuminate\Container\Util</class>::unwrapIfClosure() at vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:93
<class>Illuminate\Container\BoundMethod</class>::callBoundMethod() at vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:37
<class>Illuminate\Container\BoundMethod</class>::call() at vendor\laravel\framework\src\Illuminate\Container\Container.php:651
<class>Illuminate\Container\Container</class>->call() at vendor\laravel\framework\src\Illuminate\Console\Command.php:182
<class>Illuminate\Console\Command</class>->execute() at vendor\symfony\console\Command\Command.php:312
<class>Symfony\Component\Console\Command\Command</class>->run() at vendor\laravel\framework\src\Illuminate\Console\Command.php:152
<class>Illuminate\Console\Command</class>->run() at vendor\symfony\console\Application.php:1022
<class>Symfony\Component\Console\Application</class>->doRunCommand() at vendor\symfony\console\Application.php:314
<class>Symfony\Component\Console\Application</class>->doRun() at vendor\symfony\console\Application.php:168
<class>Symfony\Component\Console\Application</class>->run() at vendor\laravel\framework\src\Illuminate\Console\Application.php:102
<class>Illuminate\Console\Application</class>->run() at vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:155
<class>Illuminate\Foundation\Console\Kernel</class>->handle() at artisan:37
>
Good day! I encountered this only on windows and not in Unix. Thank you
My composer: