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-#3914-Invalid Queries Causes 500 Error #369

Closed
wants to merge 2 commits into from
Closed

fix-#3914-Invalid Queries Causes 500 Error #369

wants to merge 2 commits into from

Conversation

jaysomani
Copy link

Test Enhancement 🚀

Test Invalid API Call

Added a PHPUnit test case to ensure proper validation of an invalid API call. This test checks if the isValid method in the Documents class correctly handles the scenario where the provided queries are not an array. The expected behavior is that the method returns false and sets an error message indicating that "Queries must be an array."

Code Improvement 🛠️

Enhance isArray Method

Improved the isArray method in the same class (Documents) by fixing a parameter mismatch. The method now correctly checks if the provided value is an array using the is_array function, enhancing the reliability of the isArray function.

These changes aim to strengthen the validation logic and improve the overall robustness of the codebase.

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