Skip to content

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

Description

@Shnoulle

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions