You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (null === $parameterData && $constructorParameter->allowsNull()) {
366
-
$params[] = null;
367
-
// Don't run set for a parameter passed to the constructor
368
-
unset($data[$key]);
369
-
continue;
370
-
}
371
-
try {
372
-
if (null !== $constructorParameter->getClass()) {
373
-
if (!$this->serializerinstanceof DenormalizerInterface) {
374
-
thrownewLogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer', $constructorParameter->getClass(), static::class));
if (null === $parameterData && $constructorParameter->allowsNull()) {
407
+
// Don't run set for a parameter passed to the constructor
408
+
unset($data[$key]);
409
+
returnnull;
410
+
}
411
+
try {
412
+
if (null !== $constructorParameter->getClass()) {
413
+
if (!$this->serializerinstanceof DenormalizerInterface) {
414
+
thrownewLogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer', $constructorParameter->getClass(), static::class));
0 commit comments