Skip to content

Commit df942d8

Browse files
committed
Fix CS
1 parent 288a3b7 commit df942d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Serializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(array $normalizers = [], array $encoders = [])
8686

8787
if (!($normalizer instanceof NormalizerInterface || $normalizer instanceof DenormalizerInterface)) {
8888
@trigger_error(sprintf('Passing normalizers ("%s") which do not implement either "%s" or "%s" has been deprecated since Symfony 4.2.', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class), E_USER_DEPRECATED);
89-
// throw new \InvalidArgumentException(\sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class));
89+
// throw new \InvalidArgumentException(sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class));
9090
}
9191
}
9292
$this->normalizers = $normalizers;
@@ -106,7 +106,7 @@ public function __construct(array $normalizers = [], array $encoders = [])
106106

107107
if (!($encoder instanceof EncoderInterface || $encoder instanceof DecoderInterface)) {
108108
@trigger_error(sprintf('Passing encoders ("%s") which do not implement either "%s" or "%s" has been deprecated since Symfony 4.2.', \get_class($encoder), EncoderInterface::class, DecoderInterface::class), E_USER_DEPRECATED);
109-
// throw new \InvalidArgumentException(\sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), EncoderInterface::class, DecoderInterface::class));
109+
// throw new \InvalidArgumentException(sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), EncoderInterface::class, DecoderInterface::class));
110110
}
111111
}
112112
$this->encoder = new ChainEncoder($realEncoders);

0 commit comments

Comments
 (0)