nette / database

💾 A database layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.
https://doc.nette.org/database
Other
513 stars 108 forks source link

typo #276

Closed lulco closed 3 years ago

lulco commented 3 years ago

Resolves https://github.com/nette/database/issues/254

As described in linked issue:

when using where condition as array:

$this->table('foo')->where(['is_deleted' => false, 'bar' => 'baz']);

PHPStan throws error:

Parameter #1 $condition of method Nette\Database\Table\Selection::where() expects array<string>|string, array<string, mixed> given.