@@ -33,14 +33,14 @@ class ErrorException extends \ErrorException implements FriendlyExceptionInterfa
3333 E_USER_ERROR => 'PHP User Error ' ,
3434 E_USER_WARNING => 'PHP User Warning ' ,
3535 E_USER_NOTICE => 'PHP User Notice ' ,
36- E_STRICT => 'PHP Strict Warning ' ,
36+ 2048 => 'PHP Strict Warning ' , // E_STRICT
3737 E_RECOVERABLE_ERROR => 'PHP Recoverable Error ' ,
3838 E_DEPRECATED => 'PHP Deprecated Warning ' ,
3939 E_USER_DEPRECATED => 'PHP User Deprecated Warning ' ,
4040 ];
4141
4242 /** @psalm-param DebugBacktraceType $backtrace */
43- public function __construct (string $ message = '' , int $ code = 0 , int $ severity = 1 , string $ filename = __FILE__ , int $ line = __LINE__ , Exception $ previous = null , private readonly array $ backtrace = [])
43+ public function __construct (string $ message = '' , int $ code = 0 , int $ severity = 1 , string $ filename = __FILE__ , int $ line = __LINE__ , ? Exception $ previous = null , private readonly array $ backtrace = [])
4444 {
4545 parent ::__construct ($ message , $ code , $ severity , $ filename , $ line , $ previous );
4646 $ this ->addXDebugTraceToFatalIfAvailable ();
@@ -149,6 +149,6 @@ private function isXdebugStackAvailable(): bool
149149 }
150150
151151 // Xdebug 3 and later, proper mode is required
152- return str_contains (ini_get ('xdebug.mode ' ), 'develop ' );
152+ return str_contains (( string ) \ ini_get ('xdebug.mode ' ), 'develop ' );
153153 }
154154}
0 commit comments