diff --git a/src/Forms/Container.php b/src/Forms/Container.php index 022795047..983ccdd31 100644 --- a/src/Forms/Container.php +++ b/src/Forms/Container.php @@ -319,6 +319,7 @@ public function getControls(): \Iterator /** * Returns form. + * @return ($throw is true ? Form : ?Form) */ public function getForm(bool $throw = true): ?Form { diff --git a/src/Forms/Controls/BaseControl.php b/src/Forms/Controls/BaseControl.php index 71f051d67..627393bf1 100644 --- a/src/Forms/Controls/BaseControl.php +++ b/src/Forms/Controls/BaseControl.php @@ -114,6 +114,7 @@ public function getCaption() /** * Returns form. + * @return ($throw is true ? Form : ?Form) */ public function getForm(bool $throw = true): ?Form {