Skip to content

[Php81] Skip ArrayToFirstClassCallableRector early on array in attribute - #8551

Closed
TomasVotruba wants to merge 1 commit into
mainfrom
skip-first-class-callable-array-in-attribute
Closed

TomasVotruba wants to merge 1 commit into
mainfrom
skip-first-class-callable-array-in-attribute

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Array callable inside a PHP attribute argument never converts to a first-class callable. Bail out via the IS_ARRAY_IN_ATTRIBUTE flag (set by ContextNodeVisitor) before fetching scope, so the rule no longer depends on scope being decorated on attribute-argument arrays.

Keeps behavior identical; the matching check already existed inside ArrayCallableMethodMatcher::match().

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