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

Change is_int to is_numeric. #202

Open
ghost opened this issue Sep 23, 2021 · 0 comments
Open

Change is_int to is_numeric. #202

ghost opened this issue Sep 23, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 23, 2021

Lines of code: https://github.com/FoolCode/SphinxQL-Query-Builder/blob/master/src/Drivers/ConnectionBase.php#L107-L108

Change

} elseif (is_int($value)) {
    return (int) $value;
}

to

} elseif (is_numeric($value)) {
    return (int) $value;
}

Values like "1" "2" are not processed although they are numbers.

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

No branches or pull requests

0 participants