Fix CS #227
ci.yml
on: push
Code Style checks
2m 6s
Matrix: PHPStan analysis
Annotations
10 errors
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginVersion.php#L18
Method thebigcrafter\omp\cache\PluginVersion::__construct() has parameter $api with no value type specified in iterable type array.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginVersion.php#L18
Method thebigcrafter\omp\cache\PluginVersion::__construct() has parameter $deps with no value type specified in iterable type array.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginVersion.php#L32
Method thebigcrafter\omp\cache\PluginVersion::getApi() return type has no value type specified in iterable type array.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginVersion.php#L37
Method thebigcrafter\omp\cache\PluginVersion::getDepends() return type has no value type specified in iterable type array.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginVersion.php#L42
Method thebigcrafter\omp\cache\PluginVersion::getSize() has no return type specified.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginsPool.php#L55
Argument of an invalid type SplObjectStorage<thebigcrafter\omp\cache\PluginCache, mixed>|null supplied for foreach, only iterables are supported.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginsPool.php#L63
Call to an undefined method SplObjectStorage<thebigcrafter\omp\cache\PluginCache, mixed>::getName().
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/cache/PluginsPool.php#L64
Method thebigcrafter\omp\cache\PluginsPool::getPluginCacheByName() should return thebigcrafter\omp\cache\PluginCache|null but returns SplObjectStorage<thebigcrafter\omp\cache\PluginCache, mixed>.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/commands/subcommands/ListCommand.php#L64
Binary operation "-" between 1|string and 1 results in an error.
|
PHPStan analysis (ubuntu-latest, 8.1):
src/thebigcrafter/omp/commands/subcommands/ListCommand.php#L71
Parameter #1 $name of static method thebigcrafter\omp\cache\PluginsPool::getPluginCacheByName() expects string, mixed given.
|