From 11ba468a7ed8dbabbd5de5cce84a3ed7e83d84b0 Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Sat, 18 Nov 2023 09:12:12 +0100 Subject: [PATCH] Remove Cell usage restriction on public method only --- src/Serializer/Denormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer/Denormalizer.php b/src/Serializer/Denormalizer.php index 6a16ab32..f6d7de9d 100644 --- a/src/Serializer/Denormalizer.php +++ b/src/Serializer/Denormalizer.php @@ -193,7 +193,7 @@ private function setClass(string $className): ReflectionClass private function setPropertySetters(array $propertyNames): array { $propertySetters = []; - foreach ([...$this->properties, ...$this->class->getMethods(ReflectionMethod::IS_PUBLIC)] as $accessor) { + foreach ([...$this->properties, ...$this->class->getMethods()] as $accessor) { $propertySetter = $this->findPropertySetter($accessor, $propertyNames); if (null !== $propertySetter) { $propertySetters[] = $propertySetter;