@@ -21,7 +21,7 @@ class SessionHandlerProxy extends AbstractProxy implements \SessionHandlerInterf
21
21
public function __construct (\SessionHandlerInterface $ handler )
22
22
{
23
23
$ this ->handler = $ handler ;
24
- $ this ->wrapper = ( $ handler instanceof \SessionHandler) ;
24
+ $ this ->wrapper = $ handler instanceof \SessionHandler;
25
25
$ this ->saveHandlerName = $ this ->wrapper ? ini_get ('session.save_handler ' ) : 'user ' ;
26
26
}
27
27
@@ -41,7 +41,7 @@ public function getHandler()
41
41
#[\ReturnTypeWillChange]
42
42
public function open ($ savePath , $ sessionName )
43
43
{
44
- return ( bool ) $ this ->handler ->open ($ savePath , $ sessionName );
44
+ return $ this ->handler ->open ($ savePath , $ sessionName );
45
45
}
46
46
47
47
/**
@@ -50,16 +50,16 @@ public function open($savePath, $sessionName)
50
50
#[\ReturnTypeWillChange]
51
51
public function close ()
52
52
{
53
- return ( bool ) $ this ->handler ->close ();
53
+ return $ this ->handler ->close ();
54
54
}
55
55
56
56
/**
57
- * @return string
57
+ * @return string|false
58
58
*/
59
59
#[\ReturnTypeWillChange]
60
60
public function read ($ sessionId )
61
61
{
62
- return ( string ) $ this ->handler ->read ($ sessionId );
62
+ return $ this ->handler ->read ($ sessionId );
63
63
}
64
64
65
65
/**
@@ -68,7 +68,7 @@ public function read($sessionId)
68
68
#[\ReturnTypeWillChange]
69
69
public function write ($ sessionId , $ data )
70
70
{
71
- return ( bool ) $ this ->handler ->write ($ sessionId , $ data );
71
+ return $ this ->handler ->write ($ sessionId , $ data );
72
72
}
73
73
74
74
/**
@@ -77,7 +77,7 @@ public function write($sessionId, $data)
77
77
#[\ReturnTypeWillChange]
78
78
public function destroy ($ sessionId )
79
79
{
80
- return ( bool ) $ this ->handler ->destroy ($ sessionId );
80
+ return $ this ->handler ->destroy ($ sessionId );
81
81
}
82
82
83
83
/**
0 commit comments