diff --git a/src/Prefixer.php b/src/Prefixer.php index 026f3b84..44183952 100644 --- a/src/Prefixer.php +++ b/src/Prefixer.php @@ -136,6 +136,7 @@ public function replaceNamespace($contents, $originalNamespace, $replacement) |\\n\s* # start of the line |(^\s*namespace|[\r\n]+\s*namespace)\s+ # the namespace keyword |use\s+ # the use keyword + |use\s+function\s+ # the use function syntax |new\s+ |static\s+ |\" # inside a string that does not contain spaces - needs work