From 5e671e02af5ee5906f2314cb339c1838c72d3321 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 10:16:54 +0200 Subject: [PATCH] Wizard: Fix throw exception --- library/Icinga/Web/Wizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index f92f90a37..9a1b8b67d 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -155,7 +155,7 @@ class Wizard public function addPage($page) { if (! $page instanceof Form && ! $page instanceof self) { - throw InvalidArgumentException( + throw new InvalidArgumentException( 'The $page argument must be an instance of Icinga\Web\Form ' . 'or Icinga\Web\Wizard but is of type: ' . get_class($page) );