feature: initial PSR-6 cache implementation #95
Annotations
10 errors and 1 warning
Run PHPStan:
src/Cache/CacheItem.php#L11
Class PhpSpellcheck\Cache\CacheItem implements unknown interface Psr\Cache\CacheItemInterface.
|
Run PHPStan:
src/Cache/CacheItem.php#L33
Method PhpSpellcheck\Cache\CacheItem::isHit() should return bool but returns bool|null.
|
Run PHPStan:
src/Cache/FileCache.php#L14
Property PhpSpellcheck\Cache\FileCache::$deferred type has no value type specified in iterable type array.
|
Run PHPStan:
src/Cache/FileCache.php#L22
Property PhpSpellcheck\Cache\FileCache::$namespace is never read, only written.
|
Run PHPStan:
src/Cache/FileCache.php#L49
Method PhpSpellcheck\Cache\FileCache::getItem() has invalid return type Psr\Cache\CacheItemInterface.
|
Run PHPStan:
src/Cache/FileCache.php#L57
Method PhpSpellcheck\Cache\FileCache::getItem() should return Psr\Cache\CacheItemInterface but returns PhpSpellcheck\Cache\CacheItem.
|
Run PHPStan:
src/Cache/FileCache.php#L61
Parameter #1 $stream of function flock expects resource, resource|false given.
|
Run PHPStan:
src/Cache/FileCache.php#L63
Parameter #1 $stream of function fread expects resource, resource|false given.
|
Run PHPStan:
src/Cache/FileCache.php#L63
Parameter #2 $length of function fread expects int<1, max>, int<0, max>|false given.
|
Run PHPStan:
src/Cache/FileCache.php#L64
Parameter #1 $data of function unserialize expects string, string|false given.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading