error_get_last
laravel/framework
Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Get the last occurred error
error_get_last
(): ?array
{
self
::
$reservedMemory
=
null
;
if (!
is_null
(
$error
=
error_get_last
()) &&
$this
->
isFatal
(
$error
[
'type'
])) {
$this
->
handleException
(
$this
->
fatalErrorFromPhpError
(
$error
,
0
));
}
}
src/Illuminate/Foundation/Bootstrap/HandleExceptions.php