Skip to content

Commit

Permalink
Remove Cell usage restriction on public method only
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 18, 2023
1 parent 6c21785 commit 11ba468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/Denormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11ba468

Please sign in to comment.