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
512 stars 108 forks source link

PHPStan error when using Selection->where() #254

Closed lulco closed 3 years ago

lulco commented 4 years ago

In PHPStan I got error:

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

when using where condition as array:

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

Would be possible to add array<string, mixed>?