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; }