diff --git a/src/Form/Element/ObjectMultiCheckbox.php b/src/Form/Element/ObjectMultiCheckbox.php index 193ce389..48068f17 100644 --- a/src/Form/Element/ObjectMultiCheckbox.php +++ b/src/Form/Element/ObjectMultiCheckbox.php @@ -11,6 +11,7 @@ use function array_map; use function is_array; +/** @psalm-import-type ValueOptionSpec from MultiCheckbox */ class ObjectMultiCheckbox extends MultiCheckbox { use GetProxy; @@ -54,7 +55,7 @@ public function setValue($value) /** * {@inheritDoc} * - * @return array|string, array{attributes?: array, disabled?: bool, label: non-empty-string, label_attributes?: array, selected?: bool, value: non-empty-string}|string> + * @return ValueOptionSpec */ public function getValueOptions(): array { diff --git a/src/Form/Element/ObjectRadio.php b/src/Form/Element/ObjectRadio.php index 1bf6868c..451ae483 100644 --- a/src/Form/Element/ObjectRadio.php +++ b/src/Form/Element/ObjectRadio.php @@ -4,8 +4,10 @@ namespace DoctrineModule\Form\Element; +use Laminas\Form\Element\MultiCheckbox; use Laminas\Form\Element\Radio as RadioElement; +/** @psalm-import-type ValueOptionSpec from MultiCheckbox */ class ObjectRadio extends RadioElement { use GetProxy; @@ -41,7 +43,7 @@ public function setValue($value) /** * {@inheritDoc} * - * @return array|string, array{attributes?: array, disabled?: bool, label: non-empty-string, label_attributes?: array, selected?: bool, value: non-empty-string}|string> + * @return ValueOptionSpec */ public function getValueOptions(): array {