Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Jan 29, 2025

Fixes rectorphp/rector#8993

it cause error:

There was 1 error:

1) Rector\Tests\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector\CurlyToSquareBracketArrayStringRectorTest::test with data set #0 ('/Users/samsonasik/www/rector-...hp.inc')
Rector\Exception\ShouldNotHappenException: Node "PhpParser\Node\Expr\ArrayDimFetch" with is missing scope required for scope refresh

/Users/samsonasik/www/rector-src/src/Application/ChangedNodeScopeRefresher.php:50

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @robchett

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 60f9997 into main Jan 29, 2025
44 checks passed
@samsonasik samsonasik deleted the crash-curly-trait branch January 29, 2025 20:00
@robchett
Copy link

Thank you very much! That was so quick

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when curly brace string accessor in a trait method

3 participants