chore: major code cleanup and type safety using phpstan

This commit is contained in:
Björn Fromme committed 2026-04-16 17:11:16 +02:00
1 parent 060cbea9da
commit 3da73d626b
103 files changed
+976 -1192

No files matched your search

@@ -31,6 +31,10 @@ class RoomSelectionCondition implements FieldConditionInterface
*/
public function __construct(array $requiredRoomCodes, string $matchMode = self::MATCH_MODE_PREFIX)
{
if (!in_array($matchMode, [self::MATCH_MODE_PREFIX, self::MATCH_MODE_EXACT], true)) {
throw new \InvalidArgumentException(sprintf('Invalid match mode "%s".', $matchMode));
}
$this->requiredRoomCodes = array_map('strtolower', $requiredRoomCodes);
$this->matchMode = $matchMode;
}