Skip to content

Commit 7a5a9e6

Browse files
authored
Add missing namespace import in MysqlClient
Adds a missing `use` statement for the `PromiseInterface` type to `MysqlClient`. Without that change, using the API leads to type warnings: ```php function someMethod(): PromiseInterface { return $this->mysql->query(...); } // Return value is expected to be '\React\Promise\PromiseInterface', '\React\Mysql\PromiseInterface' returned
1 parent 3cf70c6 commit 7a5a9e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MysqlClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use React\Mysql\Io\Factory;
99
use React\Promise\Deferred;
1010
use React\Promise\Promise;
11+
use React\Promise\PromiseInterface;
1112
use React\Socket\ConnectorInterface;
1213
use React\Stream\ReadableStreamInterface;
1314

0 commit comments

Comments
 (0)