I'm using PHPStan to check my code.
When I'm using chaining method calls with Promise->then(...)->otherwise(...), PHPStan is complaining about the fact that otherwise method is undefined in PromiseInterface.
I can break my chaining method calls and use the PHPDoc comment but it's not very sexy...
I'm using PHPStan to check my code. When I'm using chaining method calls with
Promise->then(...)->otherwise(...)
, PHPStan is complaining about the fact thatotherwise
method is undefined inPromiseInterface
. I can break my chaining method calls and use the PHPDoc comment but it's not very sexy...By adding the PHPDoc it fixes this warning and I can continue to use chaining method calls.