guzzle / promises

Promises/A+ library for PHP with synchronous support
MIT License
7.61k stars 116 forks source link

Param type fix for inspect_all() #104

Closed alexeyshockov closed 4 years ago

alexeyshockov commented 5 years ago

inspect_all() simply goes over an iterable param and passes values to inspect() which accepts only PromiseInterface instances.

GrahamCampbell commented 4 years ago

~Looks good! 👍~

Nyholm commented 4 years ago

I just did a quick test. PHPStorm do recognise iterable but it does not understand iterable<PromiseInterface>. But PHPStan/Psalm will find that for users.