From b7dd56a04c6c716571fcf5fcdb29c243bfa14241 Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Wed, 1 May 2024 09:37:47 +1200 Subject: [PATCH] Make `JsonSerializable` more BC --- .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() {