Review main Merged

71449[BUGFIX] Add parenthesis where operation result is enforced

Nikita Hovratov CR +2 V +2 Easy +7 −7 updated 05/04/22, 16:11

Commit message

The coalesce operator has a relatively low precedence over other
operators. If used as part of other expressions, it is almost always
necessary to wrap it in parenthesis. Otherwise unexpected behaviour or
undefined array key errors (in PHP 8.0) may occur.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 6