spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

Error with new feature to log duplicate queries #217

Closed labomatik closed 3 years ago

labomatik commented 3 years ago

Describe the bug After enabling the new feature to send duplicate queries to ray #216 , i got this exception:

Object of class DateTime could not be converted to string
Pipeline.php:49

Versions

spatie/laravel-ray 1.26.0 spatie/ray 1.30.2 ray Version 1.17.1 (1.17.1)

PHP version: Laravel version: 8

To Reproduce Linked to a query with $currentDate as DateTime

$currentDate = new \DateTime($datetime->format('Y-m-d')); $model->where('date','>', $currentDate)