yiisoft / yii2-mongodb

Yii 2 MongoDB extension
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
326 stars 191 forks source link

Debugger: PHP error "implicit conversion from float" #356

Closed squio closed 1 year ago

squio commented 1 year ago

What steps will reproduce the problem?

Make sure the debug tab is enabled in development mode On a page where a mongodb query runs, open the MongoDB query debug tab

What's expected?

The tab opens and shows the query details

What do you get instead?

A PHP error:

PHP Deprecated Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html)
Implicit conversion from float 1684451026.313708 to int loses precision

Additional info

Q A
Yii version 2.0.47
Yii MongoDB version 3.0.0
MongoDB server version 6
PHP version 8.2.4
Operating system Mac OS