Issue Task Resolved

#110996Read the current session after authentication validation

Wouter Wolters 10/09/26, 18:00 updated 10/14/26, 11:55

Description

Session validation can replace the user session, for example when
an expired session becomes anonymous. Read the current session into
a local variable before checking its new and anonymous flags.

This prevents PHPStan from reusing the earlier isNew() result across
validation. Keep both guards and remove the two matching baseline
occurrences without changing authentication behavior.

Reviews 1

History 14

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-14T11:55:15+00:00" > 10/14/26, 11:55 </span>

    Applied in changeset commit:ccd5d954ccd24d7cea6ee60bb14305d2e081e7b7.