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

moodle-auth_oidc - Creation of dynamic property is deprecated with PHP 8.2+ #2594

Open
steveorulez opened this issue Jul 1, 2024 · 2 comments · May be fixed by #2601 or #2602
Open

moodle-auth_oidc - Creation of dynamic property is deprecated with PHP 8.2+ #2594

steveorulez opened this issue Jul 1, 2024 · 2 comments · May be fixed by #2601 or #2602
Assignees
Labels
Issue type - bug Bugs in existing code that needs to be fixed. Plugin - auth_oidc Status - In Progress WIP
Milestone

Comments

@steveorulez
Copy link

Hello,
we just upgraded Moodle from 4.1 to 4.3 with the latest auth_oidc plugin installed (4.3.3 - 2023100915) on a test server and this message appear with debugging activated on DEVELOPER when you visit https://moodlesiste.com/auth/oidc/

Deprecated: Creation of dynamic property auth_oidc\oidcclient::$scope is deprecated in /path/auth/oidc/classes/oidcclient.php on line 93

There is no blocking error, just a message.

It's the same issue that was fixed #2547

have a nice day
christian

@steveorulez
Copy link
Author

An easy fix is to declare it at the beginning of the class oidcclient on line 57 of the file classes/oidcclient.php

/** @var string The scope. */
protected $scope;

christian

@rafaelatopen
Copy link

Hello,
the same deprecation can be found in blocks/microsoft/block_microsoft.php line 43. Reporting here instead of creating a new issue to avoid spamming.
Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment