Skip to content

[PHP Case Sensitivity] PHP is case-insensitive for namespaces, function names, class names, and keywords, but case-sensitive for variable names. #5456

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peng-hui
Copy link
Contributor

PHP APIs are case-insensitive, like echo is the same as eCHo. Add (?i) in the queries to realize this.

@DavidBakerEffendi
Copy link
Contributor

I think the solution for this should be in the frontend itself. e.g., the name property of method and call nodes should be lowercased. Will incorporate that in upcoming PRs for PHP

@peng-hui
Copy link
Contributor Author

That's a more robust plan to solve this issue.

@peng-hui peng-hui changed the title [PHP] Make API names in queries case insensitive [PHP Case Sensitivity] PHP is case-insensitive for function names, class names, and keywords, but case-sensitive for variable names. May 5, 2025
@peng-hui peng-hui changed the title [PHP Case Sensitivity] PHP is case-insensitive for function names, class names, and keywords, but case-sensitive for variable names. [PHP Case Sensitivity] PHP is case-insensitive for namespaces, function names, class names, and keywords, but case-sensitive for variable names. May 5, 2025
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.

2 participants