Skip to content

Commit

Permalink
fix phpstan typehit
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockedPlot7560 committed Jul 31, 2023
1 parent ff6e4a1 commit 2227188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5 || ^7.5",
"pocketmine/pocketmine-mp": "^4.0 || ^5.0"
"pocketmine/pocketmine-mp": "^4.0 || ^5.0",
"phpstan/phpstan": "^1.10"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/PromiseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface PromiseInterface
* @phpstan-param null|callable(PromiseResult): ClosureResult $onFulfilled
* @phpstan-param null|callable(PromiseError): mixed $onRejected
*
* @phpstan-return PromiseInterface<ClosureResult|PromiseResult, PromiseError>
* @phpstan-return PromiseInterface<ClosureResult, PromiseError>
*/
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): PromiseInterface;

Expand Down

0 comments on commit 2227188

Please sign in to comment.