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
thrownewInvalidArgumentException(sprintf('Invalid callback found for attribute "%s" in the "%s" default context option.', $attribute, self::CALLBACKS));
if (isset($this->defaultContext[self::CIRCULAR_REFERENCE_HANDLER]) && !\is_callable($this->defaultContext[self::CIRCULAR_REFERENCE_HANDLER])) {
184
174
thrownewInvalidArgumentException(sprintf('Invalid callback found in the "%s" default context option.', self::CIRCULAR_REFERENCE_HANDLER));
@@ -220,11 +210,11 @@ public function setCircularReferenceHandler(callable $circularReferenceHandler)
220
210
}
221
211
222
212
/**
223
-
* Sets normalization callbacks.
213
+
* Sets (de)normalization callbacks.
224
214
*
225
215
* @deprecated since Symfony 4.2
226
216
*
227
-
* @param callable[] $callbacks Help normalize the result
217
+
* @param callable[] $callbacks Help (de)normalize the result
228
218
*
229
219
* @return self
230
220
*
@@ -532,7 +522,7 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
532
522
thrownewLogicException(sprintf('Cannot create an instance of "%s" from serialized data because the serializer inject in "%s" is not a denormalizer.', $parameterClass, static::class));
thrownewInvalidArgumentException(sprintf('The "%s"%s context option must be an array of callables.', self::CALLBACKS, '' !== $contextType ? "$contextType" : ''));
thrownewInvalidArgumentException(sprintf('Invalid callback found for attribute "%s" in the "%s"%s context option.', $attribute, self::CALLBACKS, '' !== $contextType ? "$contextType" : ''));
579
+
}
580
+
}
581
+
}
582
+
583
+
/**
584
+
* Apply callbacks set in context.
585
+
*
586
+
* @param mixed $value
587
+
* @param object|string $object Can be either the object being normalizing or the object's class being denormalized
0 commit comments