You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesreactphp#102 Type annotations misinterpreted by phpstan
When using this library in a project which uses [phpstan][] for code analysis it gives the following error.
Call to method then() on an unknown class
React\Socket\React\Promise\PromiseInterface.
When using this library in a project which uses phpstan for code analysis it gives the following error.
This happens because of the following return type
@return React\Promise\PromiseInterface
ofConnectorInterface#connect
Since the file is namespaced it expects all types to either be relative to the file namespace or to start with a \ if you want a fully qualified name.
The text was updated successfully, but these errors were encountered: