Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
tw2066 authored May 14, 2024
1 parent 45b7c26 commit b703b55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Serializer/AbstractSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ protected function resolveClassSerializers($object): array
foreach ($this->options->getClassSerializers() as $type => $serializer) {
if ($object instanceof $type) {
$serializers[] = $serializer;
}
elseif ('callable' == $type && is_callable($serializer)) {
} elseif ($type == 'callable' && \is_callable($serializer)) {
$serializers[] = $serializer;
}
}
Expand Down

0 comments on commit b703b55

Please sign in to comment.