yiisoft / db

Yii Database Library
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
130 stars 35 forks source link

In `QueryInterface::scalar()` result no different between value `false` and no results #851

Open vjik opened 1 month ago

samdark commented 1 month ago

Can't differentiate false as "nothing" from false as value.

Tigrov commented 1 month ago

We can mention in the documentation do not use the method for bool results.

samdark commented 1 month ago

Should be added to phpdoc, yes.