Merge pull request #21226 from ptibogxiv/patch-21
Fix php8 compatibility
This commit is contained in:
commit
374b67368d
@ -276,6 +276,13 @@ RESTLER:
|
|||||||
|
|
||||||
$loaders = array_unique(static::$rogueLoaders, SORT_REGULAR);
|
$loaders = array_unique(static::$rogueLoaders, SORT_REGULAR);
|
||||||
|
|
||||||
|
* Replace CommentParser.php line 423
|
||||||
|
elseif (count($value) && is_numeric($value[0]))
|
||||||
|
|
||||||
|
with
|
||||||
|
|
||||||
|
elseif (count($value) && isset($value[0]) && is_numeric($value[0]))
|
||||||
|
|
||||||
|
|
||||||
+With swagger 2 provided into /explorer:
|
+With swagger 2 provided into /explorer:
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|||||||
@ -420,7 +420,7 @@ class CommentParser
|
|||||||
$exception = $v1;
|
$exception = $v1;
|
||||||
array_shift($value);
|
array_shift($value);
|
||||||
}
|
}
|
||||||
} elseif (count($value) && is_numeric($value[0])) {
|
} elseif (count($value) && isset($value[0]) && is_numeric($value[0])) {
|
||||||
$code = $value[0];
|
$code = $value[0];
|
||||||
array_shift($value);
|
array_shift($value);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user