Closed parth391 closed 1 year ago
This error is thrown during parsing /lang/*/*.php.
If you previously had the 'php-parser' library installed, check its version, it should be 3.1.4.
and 'php-array-reader'(1.3.5).
Installing the php-array-reader 1.3.5 and php-parser 3.1.4 library, give same problem.
There is a suspicion on the translation php-file. Can you provide this repo?
I am creating a playground repo(Docker+Laravel) at laravel-react-i18n-playground You can use it as a base.
This error comes when there is empty folder in /lang/
.
Repeated with empty directories in /lang/
it's fine(( output below.
From error trace ch
variable set empty value. Pass in switch-case is failed and got throw
.
https://github.com/glayzzle/php-parser/blob/main/src/lexer/scripting.js#LL9C9-L9C9
Better way use breakpoint for debug, but I can't repeat this behavior 😔
I am not facing this issue anymore.
Thanks
Error coming in v2.0.3