Skip to content

Commit 307f3d5

Browse files
committed
Fix: Remove unmatched PHPStan ignore comments in BaseMap.php
PHPStan is reporting "No error with identifier assign.propertyType is reported" errors on lines 170, 174, 223, and 273 because the @PHPStan-Ignore comments are no longer necessary. These ignore directives are for the `assign.propertyType` error, but the code no longer triggers this error. Kept the valid ignore comments on lines 78, 209, 214, and 228 which are still needed. Removed only the unmatched ignore comments to resolve the PHPStan errors.
1 parent 81a228e commit 307f3d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Map/BaseMap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ protected function removeMapSubEntry(string $entry, string $entryKey, string $su
204204
}
205205

206206
// Remove the map sub entry key.
207+
// @phpstan-ignore assign.propertyType
207208
unset(static::$map[$entry][$entryKey][$subEntry][$k]);
208209

209210
// Remove the sub entry if no more values.
210211
if (empty(static::$map[$entry][$entryKey][$subEntry])) {
212+
// @phpstan-ignore assign.propertyType
211213
unset(static::$map[$entry][$entryKey][$subEntry]);
212214
} else {
213215
// Resequence the remaining values.
@@ -220,6 +222,7 @@ protected function removeMapSubEntry(string $entry, string $entryKey, string $su
220222

221223
// Remove the entry if no more values.
222224
if (empty(static::$map[$entry][$entryKey])) {
225+
// @phpstan-ignore assign.propertyType
223226
unset(static::$map[$entry][$entryKey]);
224227
}
225228

0 commit comments

Comments
 (0)