From 38add405358c8452704a89b92f82c9d80f03f590 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 3 Apr 2022 08:57:47 +0700 Subject: [PATCH] [Scoper] Clean up missing use with prefixed (#2003) --- scoper.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scoper.php b/scoper.php index c3d76cac31e..b783cc6445c 100644 --- a/scoper.php +++ b/scoper.php @@ -225,10 +225,7 @@ return [ return $content; } - $content = Strings::replace($content, '#namespace ' . $prefix . ';#', ''); - - // add missing use statements prefixes - return Strings::replace($content, '#use Symfony\\\\Polyfill#', 'use ' . $prefix . ' Symfony\Polyfill'); + return Strings::replace($content, '#namespace ' . $prefix . ';#', ''); }, // remove namespace from polyfill stubs