[Scoper] Clean up missing use with prefixed (#2003)

This commit is contained in:
Abdul Malik Ikhsan 2022-04-03 08:57:47 +07:00 committed by GitHub
parent 02bb2edef3
commit 38add40535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

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