From 5c3aab788b0266303a82fa621ccaf2f25049910b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pillevesse?= Date: Fri, 19 Apr 2024 10:16:43 +0200 Subject: [PATCH 1/2] Add @return for jsonSerialize functions --- src/Annotations/AbstractAnnotation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Annotations/AbstractAnnotation.php b/src/Annotations/AbstractAnnotation.php index 22425ee1..822ede8a 100644 --- a/src/Annotations/AbstractAnnotation.php +++ b/src/Annotations/AbstractAnnotation.php @@ -284,6 +284,9 @@ public function __debugInfo() return $properties; } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function jsonSerialize() { From cd2b220b52ea745a615db6a50fd190ec8cd6fbc3 Mon Sep 17 00:00:00 2001 From: Aurelien Pillevesse Date: Tue, 30 Apr 2024 23:46:31 +0200 Subject: [PATCH 2/2] update php-cs-fixer configuration --- .php-cs-fixer.dist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index e26c5c3b..2affc46d 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -64,7 +64,7 @@ 'nullable_type_declaration_for_default_null_value' => true, 'no_empty_phpdoc' => true, - 'no_superfluous_phpdoc_tags' => true, + 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true], 'phpdoc_align' => true, 'general_phpdoc_tag_rename' => true, 'phpdoc_inline_tag_normalizer' => true,