Fix php8 compatibility

This commit is contained in:
ptibogxiv 2022-06-12 21:33:08 +02:00 committed by GitHub
parent 0020b8782f
commit 55afe1939d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,7 @@ class CommentParser
$exception = $v1;
array_shift($value);
}
} elseif (count($value) && is_numeric($value[0])) {
} elseif (count($value) && isset($value[0]) && is_numeric($value[0])) {
$code = $value[0];
array_shift($value);
}