Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for non string id #1806

Merged
merged 1 commit into from
Aug 21, 2019
Merged

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