Merge pull request #1 from reactphp-parallel/initial-rough-setup #2
Annotations
10 errors and 1 warning
src/Adapter.php#L30
Closure has parameter $stat with a nullable type declaration.
|
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>.
|
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.
|
src/Adapter.php#L35
Control structures using switch should not be used.
|
src/Adapter.php#L35
Parameter #1 $mode of static method React\Filesystem\ModeTypeDetector::detect() expects int, int|null given.
|
src/Adapter.php#L39
Unreachable statement - code above always terminates.
|
src/Adapter.php#L43
Unreachable statement - code above always terminates.
|
src/Adapter.php#L45
Instantiated class React\Filesystem\Node\Unknown not found.
|
src/Adapter.php#L47
Unreachable statement - code above always terminates.
|
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.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading