mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Wizard: Fix throw exception
This commit is contained in:
parent
302bf3ef54
commit
5e671e02af
@ -155,7 +155,7 @@ class Wizard
|
|||||||
public function addPage($page)
|
public function addPage($page)
|
||||||
{
|
{
|
||||||
if (! $page instanceof Form && ! $page instanceof self) {
|
if (! $page instanceof Form && ! $page instanceof self) {
|
||||||
throw InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
'The $page argument must be an instance of Icinga\Web\Form '
|
'The $page argument must be an instance of Icinga\Web\Form '
|
||||||
. 'or Icinga\Web\Wizard but is of type: ' . get_class($page)
|
. 'or Icinga\Web\Wizard but is of type: ' . get_class($page)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user