#110996Read the current session after authentication validation
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
-
Gerrit Code Review pushed patch set 2 for main to change 96272 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-09T18:00:24+00:00" > 10/09/26, 18:00 </span> -
Gerrit Code Review pushed patch set 3 for main to change 96272 <span data-processor="relativetime" data-value="2026-10-09T18:00:28+00:00" > 10/09/26, 18:00 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 96272 <span data-processor="relativetime" data-value="2026-10-12T20:18:03+00:00" > 10/12/26, 20:18 </span>
-
Wouter Wolters commented and changed status
Under ReviewResolved done0 %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.