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

Bug fix (#20): Fatal error: Uncaught TypeError: Argument 1 must be of the type array, null given #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AN0R31
Copy link

@AN0R31 AN0R31 commented Jul 2, 2024

If no results are returned from the CIF search, $results will be null, but calling Client->first() method will try to access $results[0], which will throw the given error. By checking if any results are found, the issue is safely avoided.

…, but calling Client->first() method will try to access $results[0], which will throw the given error. By checking if any results are found, the issue is safely avoided.
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