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: handle class tokens only when needed during lexing #515

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

romm
Copy link
Member

@romm romm commented Apr 2, 2024

Major refactor of how the lexer handles class/interface/enums, which aims to avoid potentially expensive operations (like class_exists which can call the autoloader).

This results in a minor performance bump, and also fixes some issues concerning shaped array keys matching class names.

Fixes #427
Fixes #513

Major refactor of how the lexer handles class/interface/enums, which
aims to avoid potentially expensive operations (like `class_exists`
which can call the autoloader).

This results in a minor performance bump, and also fixes some issues
concerning shaped array keys matching class names.
@romm romm merged commit c4be758 into CuyZ:master Apr 2, 2024
11 checks passed
@romm romm deleted the fix/array-shape-key-is-class-name branch April 2, 2024 16:42
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.

Conflict in array shapes with namespaces Unneeded calls to the autoloader
1 participant