Skip to content

Commit

Permalink
[make:serializer] use empty string in str_replace (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow authored Sep 26, 2022
1 parent 52271e3 commit 99ffc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/skeleton/serializer/Normalizer.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function normalize($object, string $format = null, array $context = []):

public function supportsNormalization($data, string $format = null, array $context = []): bool
{
return $data instanceof \App\Entity\<?= str_replace('Normalizer', null, $class_name) ?>;
return $data instanceof \App\Entity\<?= str_replace('Normalizer', '', $class_name) ?>;
}

public function hasCacheableSupportsMethod(): bool
Expand Down

0 comments on commit 99ffc60

Please sign in to comment.