yiisoft / db

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

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

Open vjik opened 5 months ago

samdark commented 5 months ago

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

Tigrov commented 5 months ago

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

samdark commented 5 months ago

Should be added to phpdoc, yes.