File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
class SymfonyHttpDriver implements HttpDriverInterface
13
13
{
14
- /** @var \Symfony\Component\HttpFoundation\Session\Session|\Illuminate\Contracts\Session\Session */
14
+ /** @var \Symfony\Component\HttpFoundation\Session\Session|\Illuminate\Contracts\Session\Session|\Illuminate\Session\SessionManager */
15
15
protected $ session ;
16
16
/** @var \Symfony\Component\HttpFoundation\Response */
17
17
protected $ response ;
@@ -51,7 +51,7 @@ public function setSessionValue($name, $value)
51
51
// In Laravel 5.4 the session changed to use their own custom implementation
52
52
// instead of the one from Symfony. One of the changes was the set method
53
53
// that was changed to put. Here we check if we are using the new one.
54
- if ($ this ->session instanceof \Illuminate \Contracts \Session \Session) {
54
+ if (method_exists ( $ this ->session , ' driver ' ) && $ this -> session -> driver () instanceof \Illuminate \Contracts \Session \Session) {
55
55
$ this ->session ->put ($ name , $ value );
56
56
return ;
57
57
}
You can’t perform that action at this time.
0 commit comments