-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel v10 error in ArrayFile.php on line 84 #6
Comments
@Alexander-Kane what version are you on? |
I also get the same error. lavel 11 .. |
@hoidream what version of this library are you on? |
php: 8.2 ArrayFile.php $lexer = new Lexer\Emulative([
'usedAttributes' => [
'comments',
'startTokenPos',
'startLine',
'endTokenPos',
'endLine'
]
]);
$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7, $lexer); This problem occurs because nikic/php-parser 4.2 cannot be used. |
Are you guys using the |
Please share the |
Thank you for your interest! |
Oh, so this is used outside of wintercms, ok. |
Laravel 10.48.20
PHP 8.1.9
Code:
$config = ArrayFile::open(base_path('config/app.php'));
Error:
PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given, called in C:\OpenServer\domains\site.local\vendor\winter\laravel-config-writer\src\ArrayFile.php on line 84
The text was updated successfully, but these errors were encountered: