Skip to content

Match method and function names case-insensitively - #54

Merged
TomasVotruba merged 1 commit into
mainfrom
case-insensitive-method-names
Nov 14, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
case-insensitive-method-names

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

PHP method and function names are case-insensitive, but lookups here were case-sensitive.

  • lowercase method and function names in aggregate lookup keys, so $this->Room(5) types function room($n) and Greet(1) types function greet($n)
  • compare __construct case-insensitively in apply (isMagicExceptConstructor, methodTypeable) and collect (promoted constructor properties)
  • written source keeps its original case

@TomasVotruba
TomasVotruba merged commit ad6a47f into main Nov 14, 2026
4 checks passed
@TomasVotruba
TomasVotruba deleted the case-insensitive-method-names branch November 14, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant