Skip to content

Commit 7b28b8c

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent 2c1caf0 commit 7b28b8c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ErrorHandler.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ public function handleError(int $type, string $message, string $file, int $line)
483483
*
484484
* @internal
485485
*/
486-
public function handleException(\Throwable $exception)
486+
public function handleException(\Throwable $exception): void
487487
{
488488
$handlerException = null;
489489

@@ -534,7 +534,9 @@ public function handleException(\Throwable $exception)
534534

535535
try {
536536
if (null !== $exceptionHandler) {
537-
return $exceptionHandler($exception);
537+
$exceptionHandler($exception);
538+
539+
return;
538540
}
539541
$handlerException ??= $exception;
540542
} catch (\Throwable $handlerException) {

0 commit comments

Comments
 (0)