diff --git a/src/Session.php b/src/Session.php index a2ce285af55..7838f8ee49d 100644 --- a/src/Session.php +++ b/src/Session.php @@ -2437,9 +2437,7 @@ public static function callAsSystem(callable $fn) } finally { self::$bypass_right_checks = false; } - if ($caught_throwable !== null) { - throw $caught_throwable; - } + throw $caught_throwable; } /**