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