Skip to content
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

fix: properly handle class/enum name in shaped array key #399

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

romm
Copy link
Member

@romm romm commented Aug 13, 2023

This commit changes a bit the behaviour of the parser, which is now unable to properly detect missing colon for class constants or enum cases filters — for instance, in SomeClass:SOME_CONSTANT, the missing colon was previously detected, now it won't be.

This is intentional, because this behaviour would limit the parser's ability to properly parse shaped array keys containing class/enum name.

Because this was not such an important feature of the parser, there will be no replacement for it and instead will fix the issue described above.

Fixes #337

This commit changes a bit the behaviour of the parser, which is now
unable to properly detect missing colon for class constants or enum
cases filters — for instance, in `SomeClass:SOME_CONSTANT`, the missing
colon was previously detected, now it won't be.

This is intentional, because this behaviour would limit the parser's
ability to properly parse shaped array keys containing class/enum name.

Because this was not such an important feature of the parser, there will
be no replacement for it and instead will fix the issue described above.
@romm romm merged commit 1964d41 into CuyZ:master Aug 13, 2023
@romm romm deleted the fix/array-shape-key-class-name branch August 13, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array key cannot contain class name
1 participant