yiisoft / db

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

`Query::count()` can return `int|string` but always returns `int` #753

Closed Tigrov closed 1 year ago

Tigrov commented 1 year ago

Query::count() can return int|string

https://github.com/yiisoft/db/blob/fb4c084f5389cc1cd6718f8c74989601506f993c/src/Query/QueryFunctionsInterface.php#L39-L44

But always returns int

https://github.com/yiisoft/db/blob/fb4c084f5389cc1cd6718f8c74989601506f993c/src/Query/Query.php#L294-L300

vjik commented 1 year ago

Done by #777