Skip to content

Commit b585ae1

Browse files
authored
Calling Request::getSession() without having a session is deprecated (#1370)
Fixes #1369
1 parent 1cd3fce commit b585ae1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/GraphQL/Buffers/SubRequestBuffer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ protected function createRequest(Request $current, array $buffer, $url) {
104104
}, $buffer);
105105
});
106106

107-
if ($session = $current->getSession()) {
108-
$request->setSession($session);
107+
if ($current->hasSession()) {
108+
$request->setSession($current->getSession());
109109
}
110-
110+
111111
return $request;
112112
}
113113

0 commit comments

Comments
 (0)