Skip to content

Conversation

halaei
Copy link
Contributor

@halaei halaei commented Aug 13, 2019

#1611 breaks the following query:

$query->where('_id', 'mod', [2, 1]);

With the exception:
strlen() expects parameter 1 to be string, array given.

To fix it we have to check if $id is string before call to strlen().

@odycceus
Copy link

Please merge this PR

@lapiy
Copy link

lapiy commented Aug 21, 2019

I went here wanting to suggest exactly the same PR
Looking forward this to be merged ASAP...

@jenssegers jenssegers merged commit 01ac069 into mongodb:master Aug 21, 2019
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants