fix: Improve annotations of PromiseInterface for psalm #4
Annotations
10 errors
|
Run composer stan:
tests/Unit/PromiseTest/PromiseFulfilledTestTrait.php (in context of class React/Promise/Tests/Unit/Internal/FulfilledPromiseTest)#L263
Parameter #1 $onFulfilledOrRejected of method React\Promise\PromiseInterface<T>::finally() expects callable(): (React\Promise\PromiseInterface<void>|void), Closure(): 1 given.
|
|
Run composer stan:
tests/Unit/PromiseTest/PromiseFulfilledTestTrait.php (in context of class React/Promise/Tests/Unit/DeferredTest)#L403
Parameter #1 $onFulfilledOrRejected of method React\Promise\PromiseInterface<T>::always() expects callable(): (React\Promise\PromiseInterface<void>|void), Closure(): React\Promise\PromiseInterface<int> given.
|
|
Run composer stan:
tests/Unit/PromiseTest/PromiseFulfilledTestTrait.php (in context of class React/Promise/Tests/Unit/DeferredTest)#L380
Parameter #1 $onFulfilledOrRejected of method React\Promise\PromiseInterface<T>::always() expects callable(): (React\Promise\PromiseInterface<void>|void), Closure(): 1 given.
|
|
Run composer stan:
tests/Unit/PromiseTest/PromiseFulfilledTestTrait.php (in context of class React/Promise/Tests/Unit/DeferredTest)#L283
Parameter #1 $onFulfilledOrRejected of method React\Promise\PromiseInterface<T>::finally() expects callable(): (React\Promise\PromiseInterface<void>|void), Closure(): React\Promise\PromiseInterface<int> given.
|
|
Run composer stan:
tests/Unit/PromiseTest/PromiseFulfilledTestTrait.php (in context of class React/Promise/Tests/Unit/DeferredTest)#L263
Parameter #1 $onFulfilledOrRejected of method React\Promise\PromiseInterface<T>::finally() expects callable(): (React\Promise\PromiseInterface<void>|void), Closure(): 1 given.
|
|
Run composer stan:
tests/Unit/PromiseAdapter/CallbackPromiseAdapter.php#L28
Method React\Promise\Tests\Unit\PromiseAdapter\CallbackPromiseAdapter::resolve() has parameter $value with no type specified.
|
|
Run composer stan:
tests/Arch/ArchTest.php#L14
Property React\Promise\Tests\Arch\ArchTest::$excludedPaths type has no value type specified in iterable type array.
|
|
Run composer stan:
src/Promise.php#L101
Method React\Promise\Promise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
|
|
Run composer stan:
src/Internal/RejectedPromise.php#L34
Conditional return type uses subject type never which is not part of PHPDoc @template tags.
|
|
Run composer stan:
src/Internal/FulfilledPromise.php#L64
Method React\Promise\Internal\FulfilledPromise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
|
Loading