Skip to content

Commit f139988

Browse files
committed
Fix psalm
1 parent a096a1c commit f139988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/src/State/ActivityRemoveProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use ApiPlatform\Metadata\Operation;
66
use ApiPlatform\State\ProcessorInterface;
77
use App\Entity\Activity;
8+
use App\Entity\Comment;
89
use App\State\Util\AbstractRemoveProcessor;
910
use Doctrine\ORM\EntityManagerInterface;
1011

@@ -28,6 +29,7 @@ public function onBefore($data, Operation $operation, array $uriVariables = [],
2829
$this->em->remove($data->rootContentNode);
2930

3031
foreach ($data->comments as $comment) {
32+
/** @var Comment $comment */
3133
$comment->orphanDescription = $comment->activity->title;
3234
$comment->activity->removeComment($comment);
3335
}

0 commit comments

Comments
 (0)