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

PHP Version 8.0 and debug mode + no scopes : receive error #2

Open
Shnoulle opened this issue Mar 5, 2024 · 1 comment
Open

PHP Version 8.0 and debug mode + no scopes : receive error #2

Shnoulle opened this issue Mar 5, 2024 · 1 comment

Comments

@Shnoulle
Copy link

Shnoulle commented Mar 5, 2024

Reproduce

  • Set debug mode to 2
  • get a PHP8.0
  • No scopes selected
  • Allow to create new user
  • Try to login with a new user

get a PHP warning : foreach() argument must be of type array|object, null given

Line

foreach ($this->get('autocreate_roles', null, null, []) as $role) {

Surely have same error in PHP8.3 without debug mode (make some test after)

(i create a fix after checked php8.3)

Shnoulle added a commit to SondagesPro/limesurvey-oauth2 that referenced this issue Jul 3, 2024
@Shnoulle
Copy link
Author

Shnoulle commented Jul 3, 2024

PR : #5

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

No branches or pull requests

1 participant