diff --git a/Classes/Infrastructure/ContentRepository/ConflictsFactory.php b/Classes/Infrastructure/ContentRepository/ConflictsFactory.php index 8fd34f809c..013215e7c1 100644 --- a/Classes/Infrastructure/ContentRepository/ConflictsFactory.php +++ b/Classes/Infrastructure/ContentRepository/ConflictsFactory.php @@ -87,12 +87,12 @@ public function fromWorkspaceRebaseFailed( return new Conflicts(...$conflictsByKey); } - private function createConflictFromEventThatFailedDuringRebase( - ConflictingEvent $eventThatFailedDuringRebase + private function createConflict( + ConflictingEvent $conflictingEvent ): Conflict { - $nodeAggregateId = $eventThatFailedDuringRebase->getAffectedNodeAggregateId(); + $nodeAggregateId = $conflictingEvent->getAffectedNodeAggregateId(); $subgraph = $this->acquireSubgraph( - $eventThatFailedDuringRebase->getEvent(), + $conflictingEvent->getEvent(), $nodeAggregateId ); $affectedSite = $nodeAggregateId @@ -125,10 +125,10 @@ private function createConflictFromEventThatFailedDuringRebase( ? $this->createIconLabelForNode($affectedNode) : null, typeOfChange: $this->createTypeOfChange( - $eventThatFailedDuringRebase->getEvent() + $conflictingEvent->getEvent() ), reasonForConflict: $this->createReasonForConflictFromException( - $eventThatFailedDuringRebase->getException() + $conflictingEvent->getException() ) ); }