Skip to content

Commit 3861ee8

Browse files
author
Sine Jespersen
committed
2314: supress psalm InvalidArgument
1 parent 7a2f1e7 commit 3861ee8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/State/ScreenProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ protected function fromInput(mixed $object, Operation $operation, array $uriVari
9292
$newPlaylistScreenRegionRelation->setRegion($region);
9393
$newPlaylistScreenRegionRelation->setScreen($screen);
9494
$newPlaylistScreenRegionRelation->setWeight($inputPlaylist['weight'] ?? 0);
95+
/** @psalm-suppress InvalidArgument */
9596
$playlistScreenRegionCollection->add($newPlaylistScreenRegionRelation);
9697
} else {
9798
// Update weight, add existing relation
9899
$existingPlaylistScreenRegion->setWeight($inputPlaylist['weight'] ?? 0);
100+
/** @psalm-suppress InvalidArgument */
99101
$playlistScreenRegionCollection->add($existingPlaylistScreenRegion);
100102
}
101103
}
@@ -111,6 +113,7 @@ protected function fromInput(mixed $object, Operation $operation, array $uriVari
111113
if (is_null($groupToSave)) {
112114
throw new InvalidArgumentException('Unknown screen group resource');
113115
}
116+
/** @psalm-suppress InvalidArgument */
114117
$groupCollection->add($groupToSave);
115118
}
116119
$screen->setScreenGroups($groupCollection);

0 commit comments

Comments
 (0)