diff --git a/src/Map/BaseMap.php b/src/Map/BaseMap.php index b3fd8d32..608c1dd2 100644 --- a/src/Map/BaseMap.php +++ b/src/Map/BaseMap.php @@ -166,11 +166,9 @@ protected function getMapSubEntry(string $entry, string $entryKey, string $subEn protected function addMapSubEntry(string $entry, string $entryKey, string $subEntry, string $value): MapInterface { if (!isset(static::$map[$entry][$entryKey][$subEntry])) { - // @phpstan-ignore assign.propertyType static::$map[$entry][$entryKey][$subEntry] = [$value]; } else { if (array_search($value, static::$map[$entry][$entryKey][$subEntry]) === false) { - // @phpstan-ignore assign.propertyType static::$map[$entry][$entryKey][$subEntry][] = $value; } } @@ -219,7 +217,6 @@ protected function removeMapSubEntry(string $entry, string $entryKey, string $su foreach (static::$map[$entry][$entryKey][$subEntry] as $v) { $tmp[] = $v; } - // @phpstan-ignore assign.propertyType static::$map[$entry][$entryKey][$subEntry] = $tmp; } @@ -269,7 +266,6 @@ protected function setValueAsDefault(string $entry, string $entryKey, string $su } $tmp[] = $v; } - // @phpstan-ignore assign.propertyType static::$map[$entry][$entryKey][$subEntry] = $tmp; return $this;