Skip to content

Commit d52c356

Browse files
Fixed upgrade processor
1 parent 30f5d08 commit d52c356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Processors/Upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function replaceMethod(string $content): string
105105
protected function replaceDeclareStrictType(string $content): string
106106
{
107107
return Str::of($content)
108-
->replace('(declare\s*\(\s*strict_types\s*=\s*[1|0]\);)', '')
108+
->pregReplace('(declare\s*\(\s*strict_types\s*=\s*[1|0]\);)', '')
109109
->replace("<?php\n", "<?php\n\ndeclare(strict_types=1);\n")
110110
->toString();
111111
}

0 commit comments

Comments
 (0)