@@ -21,7 +21,7 @@ class SessionHandlerProxy extends AbstractProxy implements \SessionHandlerInterf
2121 public function __construct (\SessionHandlerInterface $ handler )
2222 {
2323 $ this ->handler = $ handler ;
24- $ this ->wrapper = ( $ handler instanceof \SessionHandler) ;
24+ $ this ->wrapper = $ handler instanceof \SessionHandler;
2525 $ this ->saveHandlerName = $ this ->wrapper ? ini_get ('session.save_handler ' ) : 'user ' ;
2626 }
2727
@@ -41,7 +41,7 @@ public function getHandler()
4141 #[\ReturnTypeWillChange]
4242 public function open ($ savePath , $ sessionName )
4343 {
44- return ( bool ) $ this ->handler ->open ($ savePath , $ sessionName );
44+ return $ this ->handler ->open ($ savePath , $ sessionName );
4545 }
4646
4747 /**
@@ -50,16 +50,16 @@ public function open($savePath, $sessionName)
5050 #[\ReturnTypeWillChange]
5151 public function close ()
5252 {
53- return ( bool ) $ this ->handler ->close ();
53+ return $ this ->handler ->close ();
5454 }
5555
5656 /**
57- * @return string
57+ * @return string|false
5858 */
5959 #[\ReturnTypeWillChange]
6060 public function read ($ sessionId )
6161 {
62- return ( string ) $ this ->handler ->read ($ sessionId );
62+ return $ this ->handler ->read ($ sessionId );
6363 }
6464
6565 /**
@@ -68,7 +68,7 @@ public function read($sessionId)
6868 #[\ReturnTypeWillChange]
6969 public function write ($ sessionId , $ data )
7070 {
71- return ( bool ) $ this ->handler ->write ($ sessionId , $ data );
71+ return $ this ->handler ->write ($ sessionId , $ data );
7272 }
7373
7474 /**
@@ -77,7 +77,7 @@ public function write($sessionId, $data)
7777 #[\ReturnTypeWillChange]
7878 public function destroy ($ sessionId )
7979 {
80- return ( bool ) $ this ->handler ->destroy ($ sessionId );
80+ return $ this ->handler ->destroy ($ sessionId );
8181 }
8282
8383 /**
0 commit comments