From ee43bfc6e86b0c1f7e56655ac5571b4102392f9a Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 10 Dec 2023 19:57:12 +0100 Subject: [PATCH] improved phpDoc --- src/Forms/Container.php | 1 + src/Forms/Controls/BaseControl.php | 1 + 2 files changed, 2 insertions(+) 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 {