Skip to content

Commit

Permalink
Update Facade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Aug 4, 2024
1 parent d402b6b commit 003e82d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 003e82d

Please sign in to comment.