ErrorException QueryDetector.php:78
tomohirohiratsuka opened this issue · 1 comments
tomohirohiratsuka commented
Hi, thank you for creating awesome package.
I've been facing error while debugging api.
error Undefined array key 0 Array(1) { userId: 5 }
ErrorException QueryDetector.php:78
Looking at the source code, I think the cause is that an associative array is returned where an array is expected to be returned, but I'm not sure if I'm using it wrong or not.
scottzirkel commented
It looks like $sources can return an empty array, but there is no check for that, so the error is thrown from the next line, which attempts to access the first value in the array. Hopefully the PR can be looked at soon and fixed, this has been plaguing me for a few months now. I still don't know how to cause it, I only know some of the queries are logged properly, and some aren't.