Merge pull request #9369 from neznaika0/refactor/phpstan-unset-offset

refactor: Fix phpstan when delete string key
This commit is contained in:
Abdul Malik Ikhsan 2025-01-04 18:44:03 +07:00 committed by GitHub
commit 536570bf32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

View File

@ -31,7 +31,7 @@ class MockCache extends BaseHandler implements CacheInterface
/**
* Expiration times.
*
* @var ?list<int>
* @var array<string, int|null>
*/
protected $expirations = [];

View File

@ -53,6 +53,5 @@ includes:
- return.unusedType.neon
- staticMethod.notFound.neon
- ternary.shortNotAllowed.neon
- unset.offset.neon
- varTag.type.neon
- variable.undefined.neon

View File

@ -1,8 +0,0 @@
# total 1 error
parameters:
ignoreErrors:
-
message: '#^Cannot unset offset string on list\<int\>\|null\.$#'
count: 2
path: ../../system/Test/Mock/MockCache.php