Merge branch '3.4' into 4.4
* 3.4: deal with errors being thrown on PHP 8
This commit is contained in:
commit
948e107a1b
@ -110,6 +110,14 @@ class SplCaster
|
||||
|
||||
$a[$prefix.'⚠'] = 'The parent constructor was not called: the object is in an invalid state';
|
||||
|
||||
return $a;
|
||||
} catch (\Error $e) {
|
||||
if ('Object not initialized' !== $e->getMessage()) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
$a[$prefix.'⚠'] = 'The parent constructor was not called: the object is in an invalid state';
|
||||
|
||||
return $a;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user