mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
typo
This commit is contained in:
parent
5657811eb4
commit
672e75ae52
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user