File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -669,6 +669,10 @@ public static function handleFatalError(?array $error = null): void
669
669
set_exception_handler ($ h );
670
670
}
671
671
if (!$ handler ) {
672
+ if (null === $ error && $ exitCode = self ::$ exitCode ) {
673
+ register_shutdown_function ('register_shutdown_function ' , function () use ($ exitCode ) { exit ($ exitCode ); });
674
+ }
675
+
672
676
return ;
673
677
}
674
678
if ($ handler !== $ h ) {
@@ -704,8 +708,7 @@ public static function handleFatalError(?array $error = null): void
704
708
// Ignore this re-throw
705
709
}
706
710
707
- if ($ exit && self ::$ exitCode ) {
708
- $ exitCode = self ::$ exitCode ;
711
+ if ($ exit && $ exitCode = self ::$ exitCode ) {
709
712
register_shutdown_function ('register_shutdown_function ' , function () use ($ exitCode ) { exit ($ exitCode ); });
710
713
}
711
714
}
You can’t perform that action at this time.
0 commit comments