From 44525c9bfce1b0bb979348c7c8fb6c2b3d407edb Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 Sep 2023 01:39:18 +0700 Subject: [PATCH] Remove dynamic object tweak on TwigBundleFilesystemLoaderToTwigRector (#522) Already covered in rector-src on PR: - https://github.com/rectorphp/rector-src/pull/4936 --- .../TwigBundleFilesystemLoaderToTwigRector.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rules/Symfony43/Rector/StmtsAwareInterface/TwigBundleFilesystemLoaderToTwigRector.php b/rules/Symfony43/Rector/StmtsAwareInterface/TwigBundleFilesystemLoaderToTwigRector.php index 0b8e64fe..a1c05dd5 100644 --- a/rules/Symfony43/Rector/StmtsAwareInterface/TwigBundleFilesystemLoaderToTwigRector.php +++ b/rules/Symfony43/Rector/StmtsAwareInterface/TwigBundleFilesystemLoaderToTwigRector.php @@ -108,10 +108,6 @@ private function resolveFileSystemLoaderNew(StmtsAwareInterface $stmtsAware): ?N continue; } - if ($assign->expr->class instanceof Expr) { - continue; - } - $new = $assign->expr; if (! $this->isObjectType($new, new ObjectType('Symfony\Bundle\TwigBundle\Loader\FilesystemLoader'))) { continue;