When it got to the end of EVENT_INIT code, if $user was still null at that point, the $user->id was throwing a "not an object" exception; just add an additional check before that to confirm $user is not null.
Definition of Done
[x] Ensure there are no formatting errors
[x] Ensure feature branch has latest development code integrated
[x] Version number in composer.json is updated
[x] New entry added in CHANGELOG.md documenting changes made
…all checks
Description
When it got to the end of
EVENT_INIT
code, if$user
was stillnull
at that point, the$user->id
was throwing a "not an object" exception; just add an additional check before that to confirm$user
is notnull
.Definition of Done
composer.json
is updatedCHANGELOG.md
documenting changes made