Skip to content

[3.x] Add template annotations #68

[3.x] Add template annotations

[3.x] Add template annotations #68

Triggered via push June 25, 2023 18:17
Status Failure
Total duration 48s
Artifacts

ci.yml

on: push
Matrix: PHPStan
Matrix: PHPUnit
Fit to window
Zoom out
Zoom in

Annotations

46 errors
PHPStan (PHP 8.1): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 8.1): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 8.1): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 8.1): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 8.1): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 8.1)
Process completed with exit code 1.
PHPStan (PHP 7.4): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 7.4): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 7.4): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 7.4): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 7.4): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 7.4)
Process completed with exit code 1.
PHPStan (PHP 7.3): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 7.3): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 7.3): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 7.3): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 7.3): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 7.3)
Process completed with exit code 1.
PHPStan (PHP 8): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 8): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 8): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 8): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 8): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 8)
Process completed with exit code 1.
PHPStan (PHP 8.2): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 8.2): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 8.2): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 8.2): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 8.2): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 8.2)
Process completed with exit code 1.
PHPStan (PHP 7.1): src/Promise.php#L187
Template type T is declared as covariant, but occurs in contravariant position in parameter result of method React\Promise\Promise::settle().
PHPStan (PHP 7.1): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 7.1): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L19
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array>::then() expects (callable(array): array|React\Promise\PromiseInterface<array>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L32
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<int>>::then() expects (callable(array<int>): array<int>|React\Promise\PromiseInterface<array<int>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L45
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<int>>::then() expects (callable(array<int>): array<int>|React\Promise\PromiseInterface<array<int>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L58
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<int|null>>::then() expects (callable(array<int|null>): array<int|null>|React\Promise\PromiseInterface<array<int|null>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L76
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<int>>::then() expects (callable(array<int>): array<int>|React\Promise\PromiseInterface<array<int>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L94
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<null>>::then() expects (callable(array<null>): array<null>|React\Promise\PromiseInterface<array<null>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.1): tests/FunctionAllTest.php#L143
Parameter #1 $onFulfilled of method React\Promise\PromiseInterface<array<int>>::then() expects (callable(array<int>): array<int>|React\Promise\PromiseInterface<array<int>>)|null, callable(): mixed&PHPUnit\Framework\MockObject\MockObject given.
PHPStan (PHP 7.2): src/Promise.php#L214
Method React\Promise\Promise::unwrap() has parameter $promise with generic interface React\Promise\PromiseInterface but does not specify its types: T
PHPStan (PHP 7.2): src/Promise.php#L214
Method React\Promise\Promise::unwrap() return type with generic interface React\Promise\PromiseInterface does not specify its types: T
PHPStan (PHP 7.2): tests/Internal/CancellationQueueTest.php#L99
Method React\Promise\Internal\CancellationQueueTest::getCancellableDeferred() return type with generic class React\Promise\Deferred does not specify its types: T
PHPStan (PHP 7.2): tests/PromiseAdapter/CallbackPromiseAdapter.php#L7
Class React\Promise\PromiseAdapter\CallbackPromiseAdapter implements generic interface React\Promise\PromiseAdapter\PromiseAdapterInterface but does not specify its types: T
PHPStan (PHP 7.2): tests/PromiseAdapter/CallbackPromiseAdapter.php#L24
Template type T of method React\Promise\PromiseAdapter\CallbackPromiseAdapter::promise() is not referenced in a parameter.
PHPStan (PHP 7.2)
Process completed with exit code 1.