`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:
raviks789 2023-08-14 16:49:56 +02:00
parent 4bfa2355b7
commit 3b707fb6ab
1 changed files with 3 additions and 2 deletions

View File

@ -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)
{