Skip to content

adjust to promise template annotations #46

adjust to promise template annotations

adjust to promise template annotations #46

Triggered via pull request January 3, 2024 18:11
@dbudbu
synchronize #173
promise-template
Status Failure
Total duration 17s
Artifacts

static.yml

on: pull_request
PHPStan
8s
PHPStan
PHP-CS-Fixer
5s
PHP-CS-Fixer
Fit to window
Zoom out
Zoom in

Annotations

8 errors
PHPStan: src/Promise/HttpFulfilledPromise.php#L31
Method Http\Client\Promise\HttpFulfilledPromise::then() should return Http\Promise\Promise<V, Http\Client\Exception> but returns Http\Client\Promise\HttpFulfilledPromise.
PHPStan: src/Promise/HttpFulfilledPromise.php#L31
Parameter #1 $response of class Http\Client\Promise\HttpFulfilledPromise constructor expects Psr\Http\Message\ResponseInterface, V given.
PHPStan: src/Promise/HttpFulfilledPromise.php#L33
Method Http\Client\Promise\HttpFulfilledPromise::then() should return Http\Promise\Promise<V, Http\Client\Exception> but returns Http\Client\Promise\HttpRejectedPromise.
PHPStan: src/Promise/HttpFulfilledPromise.php#L44
Method Http\Client\Promise\HttpFulfilledPromise::wait() should return Psr\Http\Message\ResponseInterface|null but return statement is missing.
PHPStan: src/Promise/HttpRejectedPromise.php#L36
Method Http\Client\Promise\HttpRejectedPromise::then() should return Http\Promise\Promise<V, Http\Client\Exception> but returns Http\Client\Promise\HttpFulfilledPromise.
PHPStan: src/Promise/HttpRejectedPromise.php#L36
Parameter #1 $response of class Http\Client\Promise\HttpFulfilledPromise constructor expects Psr\Http\Message\ResponseInterface, V of mixed given.
PHPStan: src/Promise/HttpRejectedPromise.php#L38
Method Http\Client\Promise\HttpRejectedPromise::then() should return Http\Promise\Promise<V, Http\Client\Exception> but returns Http\Client\Promise\HttpRejectedPromise.
PHPStan: src/Promise/HttpRejectedPromise.php#L49
Method Http\Client\Promise\HttpRejectedPromise::wait() should return Psr\Http\Message\ResponseInterface|null but return statement is missing.