From 4627cc304a83b68ee13df6f29857f9360b25c071 Mon Sep 17 00:00:00 2001 From: Juan Cristobal <65052633+juancristobalgd1@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:22:09 +0200 Subject: [PATCH] Update Axm.php --- src/Axm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Axm.php b/src/Axm.php index acb7013..4a9ef78 100644 --- a/src/Axm.php +++ b/src/Axm.php @@ -31,9 +31,8 @@ public static function makeApplication() */ public static function setApplication(App $app): void { - if (self::$_app !== null) { + if (self::$_app !== null) throw new Exception('Axm application can only be created once.'); - } self::$_app = $app; }