Merge pull request #22953 from Hystepik/develop#2

Fix : Api warning php 8.1
This commit is contained in:
Laurent Destailleur 2022-11-24 23:20:12 +01:00 committed by GitHub
commit 511a3eda95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,8 +403,8 @@ class CommentParser
$code = 500;
$exception = 'Exception';
if (count($value) > 1) {
$v1 = $value[0];
$v2 = $value[1];
$v1 = empty($value[0]) ? null : $value[0];
$v2 = empty($value[1]) ? null : $value[1];
if (is_numeric($v1)) {
$code = $v1;
$exception = $v2;