Skip to content

Commit 2f37b88

Browse files
authored
Merge pull request #324 from rogerb87/bugfix/php8-parameter-order-deprecation
Fix Deprecated Notice for PHP8
2 parents ddbba22 + a1acb92 commit 2f37b88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Serializer/ExclusionManager.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public function shouldSkipEmbedded(object $object, Relation $relation, Serializa
4141
return $this->shouldSkipRelation($relation, $context);
4242
}
4343

44-
return $this->shouldSkip($relation, $relation->getEmbedded()->getExclusion(), $context);
44+
return $this->shouldSkip($relation, $context, $relation->getEmbedded()->getExclusion());
4545
}
4646

4747
private function shouldSkipRelation(Relation $relation, SerializationContext $context): bool
4848
{
49-
return $this->shouldSkip($relation, $relation->getExclusion(), $context);
49+
return $this->shouldSkip($relation, $context, $relation->getExclusion());
5050
}
5151

52-
private function shouldSkip(Relation $relation, ?Exclusion $exclusion = null, SerializationContext $context): bool
52+
private function shouldSkip(Relation $relation, SerializationContext $context, ?Exclusion $exclusion = null): bool
5353
{
5454
$propertyMetadata = new RelationPropertyMetadata($exclusion, $relation);
5555
if ($context->getExclusionStrategy()) {

0 commit comments

Comments
 (0)