You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of directly accessing arrays it is recommended to use the ArrayAccessorTrait to fetch values. This prevents E_NOTICE warnings from being triggered by PHP when the key is undefined.
Thanks for the report. This was a direct copy of the code in thephpleague's official oauth2-github's GithubResourceOwner so you may want to report it there as well.
Instead of directly accessing arrays it is recommended to use the
ArrayAccessorTrait
to fetch values. This preventsE_NOTICE
warnings from being triggered by PHP when the key is undefined.Sidenote: in PHP 7 we can use the
??
null coalesce operator instead.The text was updated successfully, but these errors were encountered: