From 598c120eaea3b1159b0be5863d63a33f32534ab7 Mon Sep 17 00:00:00 2001 From: Roman Iudin Date: Wed, 1 Feb 2023 17:17:38 +0100 Subject: [PATCH] @return annotations for psalm types changed to @psalm-return, native type provided for @return annotation as a fallback Signed-off-by: Roman Iudin --- src/ConfigProvider.php | 3 ++- src/InputFilterProviderInterface.php | 3 ++- src/InputProviderInterface.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 3f82c7e3..c07d3285 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -28,7 +28,8 @@ public function __invoke() /** * Return dependency mappings for this component. * - * @return ServiceManagerConfigurationType + * @psalm-return ServiceManagerConfigurationType + * @return array */ public function getDependencyConfig() { diff --git a/src/InputFilterProviderInterface.php b/src/InputFilterProviderInterface.php index 27551f7b..26817258 100644 --- a/src/InputFilterProviderInterface.php +++ b/src/InputFilterProviderInterface.php @@ -14,7 +14,8 @@ interface InputFilterProviderInterface * Should return an array specification compatible with * {@link Factory::createInputFilter()}. * - * @return InputFilterSpecification|CollectionSpecification + * @psalm-return InputFilterSpecification|CollectionSpecification + * @return array */ public function getInputFilterSpecification(); } diff --git a/src/InputProviderInterface.php b/src/InputProviderInterface.php index 883512fd..738e391a 100644 --- a/src/InputProviderInterface.php +++ b/src/InputProviderInterface.php @@ -13,7 +13,8 @@ interface InputProviderInterface * Should return an array specification compatible with * {@link Factory::createInput()}. * - * @return InputSpecification + * @psalm-return InputSpecification + * @return array */ public function getInputSpecification(); }