Merge pull request #21226 from ptibogxiv/patch-21
Fix php8 compatibility
This commit is contained in:
commit
374b67368d
@ -275,6 +275,13 @@ RESTLER:
|
||||
with
|
||||
|
||||
$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:
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user