From b58fa26fc59aecad7be863402e674c1be63df07b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 30 Jun 2025 09:28:17 +0200 Subject: [PATCH] remove return type from AbstractObjectNormalizer::getAllowedAttributes() --- .github/expected-missing-return-types.diff | 7 +++++++ .../Serializer/Normalizer/AbstractObjectNormalizer.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/expected-missing-return-types.diff b/.github/expected-missing-return-types.diff index a9b6f3b22ca03..29c29d9c97d32 100644 --- a/.github/expected-missing-return-types.diff +++ b/.github/expected-missing-return-types.diff @@ -11594,6 +11594,13 @@ diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalize + abstract protected function setAttributeValue(object $object, string $attribute, mixed $value, ?string $format = null, array $context = []): void; /** +@@ -767,5 +767,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer + } + +- protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false) ++ protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false): array|bool + { + if (false === $allowedAttributes = parent::getAllowedAttributes($classOrObject, $context, $attributesAsString)) { diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php --- a/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php index 7422c849ddd80..b7b34145f3f43 100644 --- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php @@ -766,7 +766,7 @@ protected function createChildContext(array $parentContext, string $attribute, ? return $context; } - protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false): array|bool + protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false) { if (false === $allowedAttributes = parent::getAllowedAttributes($classOrObject, $context, $attributesAsString)) { return false; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy