From a19f7c44ba665fa9d9d415cc4493361381b93f9b Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 25 Nov 2021 13:05:50 +0100 Subject: [PATCH] Fix redundant type casts --- Inline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inline.php b/Inline.php index cb687554..24c802bc 100644 --- a/Inline.php +++ b/Inline.php @@ -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) {