nette/database

PHPStan error when using Selection->where()

lulco opened this issue · 0 comments

lulco commented

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>?