Has any thought been given to supporting phpstan/psalm generics e.g.
class Foo
{
/**
* @return Promise<MyDomainThing>
*/
public function wait(): Promise { // ... }
}
Otherewise, what's the best way to document a Promise that's compatible with SA tools?
Hey,
Has any thought been given to supporting phpstan/psalm generics e.g.
Otherewise, what's the best way to document a Promise that's compatible with SA tools?
Psalm has some stubs for Amp: https://github.com/vimeo/psalm/blob/master/src/Psalm/Internal/Stubs/Amp.php