Skip to content

Commit efb3b4d

Browse files
cast to int for strpos result
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
1 parent 0568464 commit efb3b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/Rector/UnderscoreToCamelCaseVariableNameRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function refactor(Node $node): ?Node
104104

105105
$underscorePosition = strpos($nodeName, '_');
106106
// underscore not found, or in the first char, skip
107-
if ($underscorePosition === false || $underscorePosition === 0) {
107+
if ((int) $underscorePosition === 0) {
108108
return null;
109109
}
110110

0 commit comments

Comments
 (0)