@@ -99,7 +99,7 @@ $factory = new React\MySQL\Factory(null, $connector);
99
99
100
100
#### createConnection()
101
101
102
- The ` createConnection(string $url): PromiseInterface<ConnectionInterface, Exception > ` method can be used to
102
+ The ` createConnection(string $url): PromiseInterface<ConnectionInterface> ` method can be used to
103
103
create a new [ ` ConnectionInterface ` ] ( #connectioninterface ) .
104
104
105
105
It helps with establishing a TCP/IP connection to your MySQL database
@@ -311,7 +311,7 @@ and sending your database queries.
311
311
312
312
#### query()
313
313
314
- The ` query(string $query, array $params = []): PromiseInterface ` method can be used to
314
+ The ` query(string $query, array $params = []): PromiseInterface<QueryResult> ` method can be used to
315
315
perform an async query.
316
316
317
317
This method returns a promise that will resolve with a ` QueryResult ` on
@@ -424,7 +424,7 @@ suited for exposing multiple possible results.
424
424
425
425
#### ping()
426
426
427
- The ` ping(): PromiseInterface<void, Exception > ` method can be used to
427
+ The ` ping(): PromiseInterface<void> ` method can be used to
428
428
check that the connection is alive.
429
429
430
430
This method returns a promise that will resolve (with a void value) on
@@ -443,7 +443,7 @@ $connection->ping()->then(function () {
443
443
444
444
#### quit()
445
445
446
- The ` quit(): PromiseInterface<void, Exception > ` method can be used to
446
+ The ` quit(): PromiseInterface<void> ` method can be used to
447
447
quit (soft-close) the connection.
448
448
449
449
This method returns a promise that will resolve (with a void value) on
0 commit comments