mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
[Scoper] Clean up missing use with prefixed (#2003)
This commit is contained in:
parent
02bb2edef3
commit
38add40535
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user