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

Add PHP 8.1 Support #7989

Merged
merged 33 commits into from
May 17, 2022
Merged

Add PHP 8.1 Support #7989

merged 33 commits into from
May 17, 2022

Conversation

driusan
Copy link
Collaborator

@driusan driusan commented Feb 10, 2022

This fixes the loading of the main LORIS pages with PHP 8.1.

Between 8.0 and 8.1 the behaviour of the PDO changed so that database selects are typed according to the column, while previously they were always a string. This restores the behaviour of 8.0 by always casting them with strval to avoid fatal type errors.

Some signatures for jsonSerialize also had to be modified to prevent warnings and phpstan had to be upgraded. The dashboard and a few random pages now load, but I haven't tested this extensively.

Blocked by #7987

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.

3 participants