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

Define class fields in question class to stop phpi 8.2 deprecation #20

Closed
wants to merge 1 commit into from

Conversation

marcusgreen
Copy link
Contributor

@marcusgreen marcusgreen commented May 28, 2024

PHP 8.2 was throwing Deprecated: Creation of dynamic property qtype_recordrtc_question::$timelimitinseconds is deprecated
and
Deprecated: Creation of dynamic property qtype_recordrtc_question::$mediatype is deprecated
Messages when debug is set to developer.

I have created two new fields in the question class

Note: the ci errors do not seem to have been introduced by this code. There are at least 7 items that will be fixed with phpcbf.

@timhunt
Copy link
Member

timhunt commented May 28, 2024

Thanks for trying to help, but we already have our own fix for this in OU code. I need to push that to GitHub.

@timhunt timhunt closed this May 28, 2024
@marcusgreen
Copy link
Contributor Author

No worries. I did not know the question type existed until I saw this in the Moodle org forums.
https://moodle.org/mod/forum/discuss.php?d=458816#p1842727

@ned-code
Copy link

It seems this problem has not been fixed. Error is still shown when using PHP 8.2 and Moodle 4.4

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