Skip to content

[Php81] Skip as argument unpack on ArrayToFirstClassCallableRector#8081

Merged
TomasVotruba merged 2 commits into
mainfrom
skip-as-ref
Jun 24, 2026
Merged

[Php81] Skip as argument unpack on ArrayToFirstClassCallableRector#8081
TomasVotruba merged 2 commits into
mainfrom
skip-as-ref

Conversation

@samsonasik

@samsonasik samsonasik commented Jun 24, 2026

Copy link
Copy Markdown
Member

Fixes rectorphp/rector#9783

that cause error:

Fatal error: Uncaught TypeError: Only arrays and Traversables can be unpacked

Ref https://3v4l.org/gO5mO#v8.1.34

@samsonasik samsonasik changed the title [Php81] Skip as ReflectionMethod argument unpack [Php81] Skip as ReflectionMethod argument unpack on ArrayToFirstClassCallableRector Jun 24, 2026
@samsonasik samsonasik changed the title [Php81] Skip as ReflectionMethod argument unpack on ArrayToFirstClassCallableRector [Php81] Skip as rgument unpack on ArrayToFirstClassCallableRector Jun 24, 2026
@samsonasik samsonasik changed the title [Php81] Skip as rgument unpack on ArrayToFirstClassCallableRector [Php81] Skip as argument unpack on ArrayToFirstClassCallableRector Jun 24, 2026
@samsonasik samsonasik requested a review from TomasVotruba June 24, 2026 13:11
@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba

Copy link
Copy Markdown
Member

Nice and clear 👍

@TomasVotruba TomasVotruba merged commit 9a8110c into main Jun 24, 2026
67 checks passed
@TomasVotruba TomasVotruba deleted the skip-as-ref branch June 24, 2026 14:23
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.

Incorrect behavior of ArrayToFirstClassCallableRector on ReflectionMethod

2 participants