Skip to content

Commit

Permalink
Add missing namespace import in MysqlClient
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bwaidelich authored Mar 20, 2024
1 parent 3cf70c6 commit 7a5a9e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MysqlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use React\Mysql\Io\Factory;
use React\Promise\Deferred;
use React\Promise\Promise;
use React\Promise\PromiseInterface;
use React\Socket\ConnectorInterface;
use React\Stream\ReadableStreamInterface;

Expand Down

0 comments on commit 7a5a9e6

Please sign in to comment.