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

issue #145: catch errors when indexing documents #146

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

dmitriim
Copy link
Member

No description provided.

@marcusboon
Copy link
Contributor

Is this something you can unit test for? Also hopefully Throwable will catch PHP errors as well, though should probably mention in the readme or something that this works only in > PHP 7

@dmitriim
Copy link
Member Author

I don't mind to add tests. Will see if I can do it for this code.
Yes, Throwable will catch everything including php internal errors. MOODLE_401_STABLE branch would only work for Moodle 4.1. This version supports min PHP7.4 see https://moodledev.io/general/releases/4.1

@dmitriim
Copy link
Member Author

@marcusboon I have added a test.

Copy link
Contributor

@marcusboon marcusboon left a comment

Choose a reason for hiding this comment

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

Looks good to me, hopefully this allows things to not explode. Unit tests pass

@marcusboon marcusboon merged commit ffffa6f into MOODLE_401_STABLE Jan 24, 2025
27 checks passed
@marcusboon marcusboon deleted the issue145 branch January 24, 2025 03:32
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.

2 participants