`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;
|
||||
|
||||
use Icinga\Forms\ConfigForm;
|
||||
use Icinga\Module\Setup\Forms\ModulePage;
|
||||
use LogicException;
|
||||
use InvalidArgumentException;
|
||||
use Icinga\Web\Session\SessionNamespace;
|
||||
|
@ -131,9 +132,9 @@ class Wizard
|
|||
*
|
||||
* Note that it's also possible to retrieve a nested wizard's page by using this method.
|
||||
*
|
||||
* @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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue