Skip to content

Commit

Permalink
Fix redundant type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Nov 25, 2021
1 parent 2c309e2 commit a19f7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ private static function evaluateScalar(string $scalar, int $flags, array &$refer
// no break
case '+' === $scalar[0] || '-' === $scalar[0] || '.' === $scalar[0] || is_numeric($scalar[0]):
if (Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar)) {
$scalar = str_replace('_', '', (string) $scalar);
$scalar = str_replace('_', '', $scalar);
}

switch (true) {
Expand Down

0 comments on commit a19f7c4

Please sign in to comment.