Skip to content

Commit 1a835d9

Browse files
committed
cs-fix
1 parent f139988 commit 1a835d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: api/src/State/ActivityRemoveProcessor.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public function onBefore($data, Operation $operation, array $uriVariables = [],
2828
// However, this currently runs into an error due to https://github.com/doctrine-extensions/DoctrineExtensions/issues/2510
2929
$this->em->remove($data->rootContentNode);
3030

31-
foreach ($data->comments as $comment) {
32-
/** @var Comment $comment */
31+
/** @var Comment[] $comments */
32+
$comments = $data->comments;
33+
foreach ($comments as $comment) {
3334
$comment->orphanDescription = $comment->activity->title;
3435
$comment->activity->removeComment($comment);
3536
}

0 commit comments

Comments
 (0)