@@ -138,9 +138,9 @@ |
||
138 | 138 | * |
139 | 139 | * @param int $offset |
140 | 140 | * @param int $length |
141 | - * @param array $replacements |
|
141 | + * @param \Symfony\Component\ExpressionLanguage\Token[] $replacements |
|
142 | 142 | * |
143 | - * @return \static |
|
143 | + * @return TokenStream |
|
144 | 144 | */ |
145 | 145 | public function splice($offset, $length, $replacements) |
146 | 146 | { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | throw new SyntaxError( |
122 | 122 | sprintf( |
123 | 123 | '%sUnexpected token "%s" of value "%s" ("%s" expected%s)', |
124 | - $message ? $message.'. ' : '', |
|
124 | + $message ? $message . '. ' : '', |
|
125 | 125 | $token->type, |
126 | 126 | $token->value, |
127 | 127 | $type, |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | if (preg_match('/[0-9]+(?:\.[0-9]+)?/A', $expression, $match, null, $cursor)) { |
30 | 30 | // numbers |
31 | - $number = (float) $match[0]; // floats |
|
31 | + $number = (float) $match[0]; // floats |
|
32 | 32 | if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) { |
33 | 33 | $number = (int) $match[0]; // integers lower than the maximum |
34 | 34 | } |