Skip to content

Commit 99ffc60

Browse files
authored
[make:serializer] use empty string in str_replace (#1210)
1 parent 52271e3 commit 99ffc60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/serializer/Normalizer.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function normalize($object, string $format = null, array $context = []):
2121

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

2727
public function hasCacheableSupportsMethod(): bool

0 commit comments

Comments
 (0)