From 003e82debe74ee37e1c177bc8ad243ab088e0219 Mon Sep 17 00:00:00 2001 From: Juan Cristobal <65052633+juancristobalgd1@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:27:59 +0200 Subject: [PATCH] Update Facade.php --- src/Facade.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Facade.php b/src/Facade.php index 5b64d02..c693b88 100644 --- a/src/Facade.php +++ b/src/Facade.php @@ -39,9 +39,8 @@ public static function __callStatic(string $name, array $arguments): mixed { $instance = self::getInstance(static::getAlias()); - if (!$instance) { + if (!$instance) throw new \RuntimeException('A facade root has not been set.'); - } return $instance->{$name}(...$arguments); }