Merge pull request #10 from reactphp-parallel/renovate/phpunit #12
Annotations
10 errors
Run make stan:
src/Directory.php#L40
Parameter #1 $callable of method ReactParallel\Contracts\PoolInterface::run() expects Closure(): list<React\Promise\PromiseInterface<React\Filesystem\Node\NodeInterface>>, Closure(string, React\Filesystem\AdapterInterface): list<React\Promise\PromiseInterface<React\Filesystem\Node\NodeInterface>> given.
|
Run make stan:
src/Adapter.php#L47
Unreachable statement - code above always terminates.
|
Run make stan:
src/Adapter.php#L45
Instantiated class React\Filesystem\Node\Unknown not found.
|
Run make stan:
src/Adapter.php#L43
Unreachable statement - code above always terminates.
|
Run make stan:
src/Adapter.php#L39
Unreachable statement - code above always terminates.
|
Run make stan:
src/Adapter.php#L35
Parameter #1 $mode of static method React\Filesystem\ModeTypeDetector::detect() expects int, int|null given.
|
Run make stan:
src/Adapter.php#L35
Control structures using switch should not be used.
|
Run make stan:
src/Adapter.php#L30
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<mixed>::then() expects (callable(mixed): (React\Filesystem\Node\DirectoryInterface|React\Filesystem\Node\FileInterface|React\Filesystem\Node\Unknown|React\Promise\PromiseInterface<React\Filesystem\Node\DirectoryInterface|React\Filesystem\Node\FileInterface|React\Filesystem\Node\Unknown|ReactParallel\Filesystem\NotExist>|ReactParallel\Filesystem\NotExist))|null, Closure(React\Filesystem\Stat|null): (React\Filesystem\Node\DirectoryInterface|React\Filesystem\Node\FileInterface|React\Filesystem\Node\Unknown|ReactParallel\Filesystem\NotExist) given.
|
Run make stan:
src/Adapter.php#L30
Method ReactParallel\Filesystem\Adapter::detect() should return React\Promise\PromiseInterface<React\Filesystem\Node\NodeInterface> but returns React\Promise\PromiseInterface<React\Filesystem\Node\DirectoryInterface|React\Filesystem\Node\FileInterface|React\Filesystem\Node\Unknown|ReactParallel\Filesystem\NotExist>.
|
Run make stan:
src/Adapter.php#L30
Closure has parameter $stat with a nullable type declaration.
|
Loading