spatie / laravel-activitylog

Log activity inside your Laravel app
https://docs.spatie.be/laravel-activitylog
MIT License
5.36k stars 714 forks source link

Object of class Illuminate\Support\Carbon could not be converted to int #1255

Closed BUGOVER closed 6 months ago

BUGOVER commented 10 months ago

Describe the bug When updating the model and inserting dates there throws an exception, "Object of class Illuminate\Support\Carbon could not be converted to int", on "vendor/spatie/laravel-activitylog/src/Traits/LogsActivity.php", line 313, method attributeValuesToBeLogged(),

activiti-log-2 activiti-log-1

Versions (please complete the following information)

Exception Object of class Illuminate\Support\Carbon could not be converted to int.

Additional context Tries to compare a number to an Carbon object !

spatie-bot commented 6 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.