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

[Symfony43] Skip not instanceof FilesystemLoader via dynamic new $class on TwigBundleFilesystemLoaderToTwigRector #519

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik changed the title [Symfony43] Skip not instanceof FilesystemLoader on TwigBundleFilesystemLoaderToTwigRector [Symfony43] Skip not instanceof FilesystemLoader via dynamic new $class on TwigBundleFilesystemLoaderToTwigRector Sep 7, 2023
Comment on lines +111 to +113
if ($assign->expr->class instanceof Expr) {
continue;
}
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 the new $class got true on isObjectType() so this check is needed here, the isObjectType() method itself may need improvement to detect it automatically.

Copy link
Member Author

Choose a reason for hiding this comment

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

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @knallcharge

@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
Development

Successfully merging this pull request may close these issues.

Incorrect behavior of TwigBundleFilesystemLoaderToTwigRector
1 participant