Skip to content

Commit

Permalink
Fixed exception message grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarystepkowski committed Dec 1, 2018
1 parent f8bf6bf commit 06ef399
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -446,7 +446,7 @@ protected function parseConstructorParameter(array &$data, $key, array &$context
try {
if (null !== $constructorParameter->getClass()) {
if (!$this->serializer instanceof DenormalizerInterface) {
throw new LogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer', $constructorParameter->getClass(), self::class));
throw new LogicException(sprintf('Cannot create an instance of "%s" from serialized data because the serializer injected in "%s" is not a denormalizer', $constructorParameter->getClass(), self::class));
}
$parameterClass = $constructorParameter->getClass()->getName();
$parameterData = $this->serializer->denormalize($parameterData, $parameterClass, $format, $this->createChildContext($context, $constructorParameter->name));
Expand Down

0 comments on commit 06ef399

Please sign in to comment.