Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/Map/BaseMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down
Loading