10000 [scoper] unprefix container only in our code · rectorphp/rector-src@d481136 · GitHub
[go: up one dir, main page]

Skip to content

Commit d481136

Browse files
committed
[scoper] unprefix container only in our code
1 parent acd6f3a commit d481136

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scoper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ function (string $filePath, string $prefix, string $content): string {
115115

116116
// unprefixed ContainerConfigurator
117117
function (string $filePath, string $prefix, string $content): string {
118+
// keep vendor prefixed the prefixed file loading; not part of public API
119+
if (str_contains($filePath, 'vendor')) {
120+
return $content;
121+
}
122+
118123
return Strings::replace(
119124
$content,
120125
'#' . $prefix . '\\\\Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ContainerConfigurator#',

0 commit comments

Comments
 (0)
0