Since PHPStan 1.6, it's possible to use Conditional Return Types, where I've been able to do things like: /** * @param string $x * @return ($x is literal-stri
I'm looking at a Database ORM that uses an array to define the WHERE clause, e.g. $articles->find('all', [ 'OR' => [ 'category_id IS NULL',