We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a34899 commit 0966688Copy full SHA for 0966688
1 file changed
src/Token.php
@@ -254,7 +254,9 @@ public function extract()
254
case Token::TYPE_SYMBOL:
255
$str = $this->token;
256
if ((isset($str[0])) && ($str[0] === '@')) {
257
- $str = mb_substr($str, 1, null, 'UTF-8');
+ // `mb_strlen($str)` must be used instead of `null` because
258
+ // in PHP 5.3- the `null` parameter isn't handled correctly.
259
+ $str = mb_substr($str, 1, mb_strlen($str), 'UTF-8');
260
}
261
if ((isset($str[0])) && (($str[0] === '`')
262
|| ($str[0] === '"') || ($str[0] === '\''))
0 commit comments