From 672e75ae52c6ea078cb7a06b36161ae890645395 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Thu, 18 Mar 2021 23:30:47 +0100 Subject: [PATCH] typo --- scoper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoper.php b/scoper.php index 11c1cd9e84a..c2f1261f673 100644 --- a/scoper.php +++ b/scoper.php @@ -41,7 +41,7 @@ return [ // fixes https://github.com/rectorphp/rector-prefixed/runs/2143717534 function (string $filePath, string $prefix, string $content) use ($filePathsToRemoveNamespace): string { // @see https://regex101.com/r/0jaVB1/1 - $prefixedNamespacePattern = '#^namespace (.*?);$#'; + $prefixedNamespacePattern = '#^namespace (.*?);$#m'; foreach ($filePathsToRemoveNamespace as $filePathToRemoveNamespace) { if (Strings::endsWith($filePath, $filePathToRemoveNamespace)) {