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

Refactor by infection #6

Merged
merged 4 commits into from
Aug 23, 2019
Merged

Refactor by infection #6

merged 4 commits into from
Aug 23, 2019

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented Aug 23, 2019

Fix tests and implementation leaks pointed out by infection.

@@ -128,7 +129,7 @@ protected static function replaceHolder($pdo, $key, $type, $value, &$bind_values
throw new \LogicException('Validation Error.');
}

if (!preg_match('/\A(?:-?[1-9][0-9]*)(?:,-?[1-9][0-9]*)*\z/', $valuesString)) {
if ($value !== '0' && !preg_match('/\A(?:-?[1-9][0-9]*)(?:,-?[1-9][0-9]*)*\z/', $valuesString)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #4, but forgot to fix.

@zonuexe zonuexe merged commit 09d6b2a into master Aug 23, 2019
@zonuexe zonuexe deleted the refactor/by-infection branch August 23, 2019 13:37
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.

1 participant