Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 3981803

Browse files
committed
rollback strpos on indention check as it can be empty string
1 parent f3d161b commit 3981803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/MethodGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected static function clearBodyIndention($body)
126126
$indention = str_replace(trim($lines[1]), '', $lines[1]);
127127

128128
foreach ($lines as $key => $line) {
129-
if (0 === strpos($line, $indention)) {
129+
if (substr($line, 0, strlen($indention)) == $indention) {
130130
$lines[$key] = substr($line, strlen($indention));
131131
}
132132
}

0 commit comments

Comments
 (0)