Skip to content

Commit d895ea8

Browse files
committed
Remove unnecessary PHPStan annotations from PromiseInterface methods
1 parent ab3cc9b commit d895ea8

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/PromiseInterface.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ interface PromiseInterface {
3131
* than once.
3232
*
3333
* @template-covariant ClosureResult
34-
*
35-
* @phpstan-param null|callable(PromiseResult): ClosureResult $onFulfilled
36-
* @phpstan-param null|callable(PromiseError): mixed $onRejected
37-
*
38-
* @phpstan-return PromiseInterface<ClosureResult, PromiseError>
3934
*/
4035
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface;
4136

@@ -48,9 +43,6 @@ public function then(?callable $onFulfilled = null, ?callable $onRejected = null
4843
*
4944
* Additionally, you can type hint the `$reason` argument of `$onRejected` to catch
5045
* only specific errors.
51-
*
52-
* @phpstan-param callable(PromiseError) : mixed $onRejected
53-
* @phpstan-return PromiseInterface<PromiseResult, PromiseError>
5446
*/
5547
public function catch(callable $onRejected): PromiseInterface;
5648

@@ -95,9 +87,6 @@ public function catch(callable $onRejected): PromiseInterface;
9587
* ->catch('handleError')
9688
* ->finally('cleanup');
9789
* ```
98-
*
99-
* @phpstan-param callable() : mixed $onFulfilledOrRejected
100-
* @phpstan-return PromiseInterface<PromiseResult, PromiseError>
10190
*/
10291
public function finally(callable $onFulfilledOrRejected): PromiseInterface;
10392

0 commit comments

Comments
 (0)