diff --git a/src/FixturesKernel.php b/src/FixturesKernel.php index 4ce9a0b..bce798a 100644 --- a/src/FixturesKernel.php +++ b/src/FixturesKernel.php @@ -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); }