1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

Fluent: fixed phpDoc, query() may return Result|int

This commit is contained in:
Miloslav Hůla
2017-09-07 10:42:46 +02:00
committed by David Grudl
parent 9486b65b84
commit d4b87490a1
2 changed files with 6 additions and 1 deletions

View File

@@ -415,7 +415,7 @@ class Fluent implements IDataSource
/**
* @return Result
* @return Result|int
*/
private function query($args)
{

View File

@@ -48,3 +48,8 @@ if (!in_array($config['system'], ['odbc', 'sqlsrv'], true)) {
],
], $res->fetchAssoc('name,title'));
}
// affected rows
$res = $conn->update('products', ['title' => 'new'])->execute();
Assert::same(3, $res);