From 520ffb7c4fb19d8b150a82d992a00aa72ab9dc3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pillevesse?= Date: Wed, 1 May 2024 00:01:17 +0200 Subject: [PATCH] Update `jsonSerialize` return (#1575) --- .php-cs-fixer.dist.php | 2 +- src/Annotations/AbstractAnnotation.php | 3 +++ 2 files changed, 4 insertions(+), 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, 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() {