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
@trigger_error('Passing configuration options directly to the constructor is deprecated since Symfony 4.2, use the default context instead.', E_USER_DEPRECATED);
@trigger_error('Passing configuration options directly to the constructor is deprecated since Symfony 4.2, use the default context instead.', E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "circular_reference_limit" key of the context instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "circular_reference_handler" key of the context instead.', __METHOD__), E_USER_DEPRECATED);
* @param callable[] $callbacks Help normalize the result
230
-
*
231
-
* @return self
232
-
*
233
-
* @throws InvalidArgumentException if a non-callable callback is set
234
-
*/
235
-
publicfunctionsetCallbacks(array$callbacks)
236
-
{
237
-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "callbacks" key of the context instead.', __METHOD__), E_USER_DEPRECATED);
238
-
239
-
foreach ($callbacksas$attribute => $callback) {
240
-
if (!\is_callable($callback)) {
241
-
thrownewInvalidArgumentException(sprintf('The given callback for attribute "%s" is not callable.', $attribute));
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "ignored_attributes" key of the context instead.', __METHOD__), E_USER_DEPRECATED);
thrownewCircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d)', \get_class($object), $this->circularReferenceLimit));
229
+
thrownewCircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d)', \get_class($object), $context[self::CIRCULAR_REFERENCE_LIMIT] ?? $this->defaultContext[self::CIRCULAR_REFERENCE_LIMIT]));
333
230
}
334
231
335
232
/**
@@ -387,7 +284,7 @@ protected function getAllowedAttributes($classOrObject, array $context, $attribu
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "max_depth_handler" key of the context instead.', __METHOD__), E_USER_DEPRECATED);
306
-
307
-
$this->maxDepthHandler = $handler;
308
-
}
309
-
310
291
/**
311
292
* {@inheritdoc}
312
293
*/
@@ -595,8 +576,7 @@ private function getCacheKey(?string $format, array $context)
@trigger_error(sprintf('The "format" parameter is deprecated since Symfony 4.2, use the "%s" key of the context instead.', self::FORMAT_KEY), E_USER_DEPRECATED);
0 commit comments