Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Mar 19, 2024

Conversation

samsonasik
Copy link
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

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

#[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
Member Author

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
Member Author

Choose a reason for hiding this comment

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

Copy link
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
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