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 warnings when using PHP 8.2 #80

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Conversation

timhunt
Copy link
Contributor

@timhunt timhunt commented Dec 4, 2023

Hi Gordon, PHP 8.2 does not like it if you try to set an undelcared fieldon a class. You get warnings like:

PHP Deprecated: Creation of dynamic property qtype_ordering_question::$layouttype is deprecated in C:\Users\tjh238\workspace\ou-moodle2\question\type\questiontypebase.php on line 1015

This is one way it can be fixed. (I also did another commit to update the CI config to test with Moodle 4.3 and PHP 8.2.)

@gbateson gbateson merged commit e2c25da into gbateson:master Dec 6, 2023
6 checks passed
@gbateson
Copy link
Owner

gbateson commented Dec 6, 2023

Many thanks Tim. I have merged this into the qtype_ordering repository.

@timhunt
Copy link
Contributor Author

timhunt commented Dec 7, 2023

Thanks Gordon.

Chocolate-lightning pushed a commit to ilyatregubov/moodle-qtype_ordering that referenced this pull request Jan 15, 2024
Many thanks Tim Hunt for finding and fixing gbateson#80 (avoid warnings with PHP 8.2, Update moodle-plugin-ci config)
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