Skip to content

Commit

Permalink
Merge branch '7.0' into 7.1
Browse files Browse the repository at this point in the history
* 7.0:
  fix merge
  [AssetMapper] Split test dirs in tests
  Fix typo
  Change incorrect check for the `stateless` request attribute
  [Validator] add setGroupProvider to AttributeLoader
  use copy() instead of rename() on Windows
  test: kebab-case to snake_case
  [PropertyInfo] Handle collection in PhpStan same as PhpDoc
  [Messenger] Passing to `WorkerMessageRetriedEvent` envelope with actual stamps after sent
  • Loading branch information
xabbuh committed Jul 9, 2024
2 parents 82b2224 + 8611951 commit 118a587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/ProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function searchBarAction(Request $request): Response
$this->cspHandler?->disableCsp();

$session = null;
if ($request->attributes->getBoolean('_stateless') && $request->hasSession()) {
if (!$request->attributes->getBoolean('_stateless') && $request->hasSession()) {
$session = $request->getSession();
}

Expand Down

0 comments on commit 118a587

Please sign in to comment.