mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #9369 from neznaika0/refactor/phpstan-unset-offset
refactor: Fix phpstan when delete string key
This commit is contained in:
commit
536570bf32
@ -31,7 +31,7 @@ class MockCache extends BaseHandler implements CacheInterface
|
||||
/**
|
||||
* Expiration times.
|
||||
*
|
||||
* @var ?list<int>
|
||||
* @var array<string, int|null>
|
||||
*/
|
||||
protected $expirations = [];
|
||||
|
||||
|
@ -53,6 +53,5 @@ includes:
|
||||
- return.unusedType.neon
|
||||
- staticMethod.notFound.neon
|
||||
- ternary.shortNotAllowed.neon
|
||||
- unset.offset.neon
|
||||
- varTag.type.neon
|
||||
- variable.undefined.neon
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user