orm icon indicating copy to clipboard operation
orm copied to clipboard

[FIX] fix ClockworkLogger to work with custom types

Open sarven opened this issue 3 years ago • 0 comments

Recently, I found that ClockworkLogger is not working correctly with custom types. It's caused because a lack of types passed to the formatter in src/Loggers/Clockwork/DoctrineDataSource.php.

Given query param is an instance of (...)ValueObject and could not be converted to a string
/vendor/laravel-doctrine/orm/src/Loggers/Formatters/ReplaceQueryParams.php:55

Changes proposed in this pull request:

  • pass types to the formatter in src/Loggers/Clockwork/DoctrineDataSource.php

sarven avatar Aug 25 '22 10:08 sarven