mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Wizard
: Fix return type for method getPage()
The method `Wizard::getPage()` could also return `ModulePage` instance. Hence it is included as one of the return type of this method.
This commit is contained in:
parent
4bfa2355b7
commit
3b707fb6ab
@ -4,6 +4,7 @@
|
|||||||
namespace Icinga\Web;
|
namespace Icinga\Web;
|
||||||
|
|
||||||
use Icinga\Forms\ConfigForm;
|
use Icinga\Forms\ConfigForm;
|
||||||
|
use Icinga\Module\Setup\Forms\ModulePage;
|
||||||
use LogicException;
|
use LogicException;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Icinga\Web\Session\SessionNamespace;
|
use Icinga\Web\Session\SessionNamespace;
|
||||||
@ -133,7 +134,7 @@ class Wizard
|
|||||||
*
|
*
|
||||||
* @param string $name The name of the page to return
|
* @param string $name The name of the page to return
|
||||||
*
|
*
|
||||||
* @return null|Form The page or null in case there is no page with the given name
|
* @return ModulePage|Form|null The page or null in case there is no page with the given name
|
||||||
*/
|
*/
|
||||||
public function getPage($name)
|
public function getPage($name)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user