From manual page: https://php.net/function.error-get-last
Missing: in PHP 8.5+, if the error is a "fatal error" then the return array contains "trace" (array).
Similarly, the array shape of this functions needs updating to /** @var null|array{type:int,message:string,file:string,line:int,trace?:array} $aError */ (editor throws error when checking for "trace")
From manual page: https://php.net/function.error-get-last
Missing: in PHP 8.5+, if the error is a "fatal error" then the return array contains "trace" (array).
Similarly, the array shape of this functions needs updating to
/** @var null|array{type:int,message:string,file:string,line:int,trace?:array} $aError */(editor throws error when checking for "trace")