Skip to content

[CodingStyle] Remove usage of Reflection::expandClassName() from nette/utils 4.0 as cause bug on downgrade#5740

Merged
samsonasik merged 4 commits intomainfrom
remove-expant
Mar 19, 2024
Merged

[CodingStyle] Remove usage of Reflection::expandClassName() from nette/utils 4.0 as cause bug on downgrade#5740
samsonasik merged 4 commits intomainfrom
remove-expant

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Mar 19, 2024

The syntax of downgrade PhpToken::tokenize() and it usage call another method with ->is() usage is too complex to downgrade.

I think this usage can be removed.

Closes rectorphp/getrector-com#2142
Closes rectorphp/rector#8565


#[Route(path: '/pro/{id}/networks/{networkId}/sectors', name: 'api_network_sectors', requirements: ['id' => '\d+', 'networkId' => '\d+'])]
#[IsGranted('TEST')]
#[\Symfony\Component\Security\Http\Attribute\IsGranted('TEST')]
Copy link
Copy Markdown
Member Author

@samsonasik samsonasik Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba this is only drawback for this, as this consist of rename + make attribute, and run twice will auto-import it, see fixture https://github.com/rectorphp/rector-src/pull/5740/files#diff-fe6ad097b1f7d2f4670de3d6f764aabffb83f16862d8d7893e464012e0be1702

which I think it is ok :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@samsonasik
Copy link
Copy Markdown
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants