BDSU / limesurvey-oauth2

LimeSurvey plugin for OAuth2 integration
14 stars 7 forks source link

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

Open Shnoulle opened 8 months ago

Shnoulle commented 8 months ago

Reproduce

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

Line https://github.com/BDSU/limesurvey-oauth2/blob/512a4b2ef606ea897c05756a54bdb51916d0a9d1/AuthOAuth2.php#L312

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

(i create a fix after checked php8.3)

Shnoulle commented 4 months ago

PR : https://github.com/BDSU/limesurvey-oauth2/pull/5