Skip to content

Commit eba0a1e

Browse files
authored
Use fully qualified type annotation
Fixes #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.
1 parent 8f880ab commit eba0a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConnectorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface ConnectorInterface
5151
* ```
5252
*
5353
* @param string $uri
54-
* @return React\Promise\PromiseInterface resolves with a stream implementing ConnectionInterface on success or rejects with an Exception on error
54+
* @return \React\Promise\PromiseInterface resolves with a stream implementing ConnectionInterface on success or rejects with an Exception on error
5555
* @see ConnectionInterface
5656
*/
5757
public function connect($uri);

0 commit comments

Comments
 (0)