Skip to content

Commit

Permalink
Use getString instead
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Jan 7, 2025
1 parent 9a9d3e2 commit 8e296ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/FixturesKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ private function prepareSession(Request $request): void

$cookies = $request->cookies;

$value = $cookies->get($session->getName());
if ($value !== null) {
$session->setId((string) $value);
if ($cookies->has($session->getName())) {
$session->setId($cookies->getString($session->getName()));
} else {
$session->migrate(false);
}
Expand Down

0 comments on commit 8e296ed

Please sign in to comment.