Skip to content

Commit

Permalink
Make PHPStan happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed May 24, 2024
1 parent 37318a6 commit ae060f1
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 @@ -256,7 +256,7 @@ private function setClass(string $className): ReflectionClass
private function setPropertySetters(array $propertyNames): array
{
$propertySetters = [];
$methodNames = array_map(fn (string|int $propertyName) => is_int($propertyName) ? null : 'set'.ucfirst($propertyName), $propertyNames);
$methodNames = array_map(fn (string $propertyName) => 'set'.ucfirst($propertyName), $propertyNames);
foreach ([...$this->properties, ...$this->class->getMethods()] as $accessor) {
$attributes = $accessor->getAttributes(MapCell::class, ReflectionAttribute::IS_INSTANCEOF);
$propertySetter = match (count($attributes)) {
Expand Down

0 comments on commit ae060f1

Please sign in to comment.