10000 Merge branch '5.0' · Pchol/symfony@2f5047e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f5047e

Browse files
committed
Merge branch '5.0'
* 5.0: Fix bad merge
2 parents d5bbdca + a196d05 commit 2f5047e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,7 @@ protected function isCircularReference(object $object, array &$context)
208208
*/
209209
protected function handleCircularReference(object $object, string $format = null, array $context = [])
210210
{
211-
<<<<<<< HEAD
212211
$circularReferenceHandler = $context[self::CIRCULAR_REFERENCE_HANDLER] ?? $this->defaultContext[self::CIRCULAR_REFERENCE_HANDLER];
213-
=======
214-
if (\func_num_args() < 2 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
215-
@trigger_error(sprintf('The "%s()" method will have two new "string $format = null" and "array $context = []" arguments in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
216-
}
217-
$format = \func_num_args() > 1 ? func_get_arg(1) : null;
218-
$context = \func_num_args() > 2 ? func_get_arg(2) : [];
219-
220-
$circularReferenceHandler = $context[self::CIRCULAR_REFERENCE_HANDLER] ?? $this->defaultContext[self::CIRCULAR_REFERENCE_HANDLER] ?? $this->circularReferenceHandler;
221-
>>>>>>> 4.4
222212
if ($circularReferenceHandler) {
223213
return $circularReferenceHandler($object, $format, $context);
224214
}

0 commit comments

Comments
 (0)
0