Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Feb 18, 2021
1 parent 26e4f9d commit 29ccf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Replace/NamespaceReplacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function replace($contents, $file = null)
(?<![a-zA-Z0-9_]\\\\) # Not a class-allowed character followed by a slash
(?<!class\s) # Not a class declaration
$searchNamespace # The namespace were looking for
(?=;|\\\|\\|\sas) # Followed by one of
(?=;|\\\|\||\sas) # Followed by one of
# semicolon when it is the class namespace itself
# backslash when it is part of a longer namespace or namespaced class
# pipe
Expand Down

0 comments on commit 29ccf74

Please sign in to comment.