Skip to content

Commit a19f7c4

Browse files
committed
Fix redundant type casts
1 parent 2c309e2 commit a19f7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ private static function evaluateScalar(string $scalar, int $flags, array &$refer
653653
// no break
654654
case '+' === $scalar[0] || '-' === $scalar[0] || '.' === $scalar[0] || is_numeric($scalar[0]):
655655
if (Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar)) {
656-
$scalar = str_replace('_', '', (string) $scalar);
656+
$scalar = str_replace('_', '', $scalar);
657657
}
658658

659659
switch (true) {

0 commit comments

Comments
 (0)