Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50573ef

Browse filesBrowse files
committed
Don't use import for root class
1 parent 17ad31b commit 50573ef
Copy full SHA for 50573ef

File tree

3 files changed

+18
-23
lines changed
Filter options

3 files changed

+18
-23
lines changed

‎src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
1313

14-
use ReturnTypeWillChange;
1514
use Symfony\Component\HttpFoundation\Session\SessionUtils;
1615

1716
/**
@@ -32,7 +31,7 @@ abstract class AbstractSessionHandler implements \SessionHandlerInterface, \Sess
3231
/**
3332
* @return bool
3433
*/
35-
#[ReturnTypeWillChange]
34+
#[\ReturnTypeWillChange]
3635
public function open($savePath, $sessionName)
3736
{
3837
$this->sessionName = $sessionName;
@@ -68,7 +67,7 @@ abstract protected function doDestroy($sessionId);
6867
/**
6968
* @return bool
7069
*/
71-
#[ReturnTypeWillChange]
70+
#[\ReturnTypeWillChange]
7271
public function validateId($sessionId)
7372
{
7473
$this->prefetchData = $this->read($sessionId);
@@ -89,7 +88,7 @@ public function validateId($sessionId)
8988
/**
9089
* @return string
9190
*/
92-
#[ReturnTypeWillChange]
91+
#[\ReturnTypeWillChange]
9392
public function read($sessionId)
9493
{
9594
if (null !== $this->prefetchId) {
@@ -113,7 +112,7 @@ public function read($sessionId)
113112
/**
114113
* @return bool
115114
*/
116-
#[ReturnTypeWillChange]
115+
#[\ReturnTypeWillChange]
117116
public function write($sessionId, $data)
118117
{
119118
if (null === $this->igbinaryEmptyData) {
@@ -131,7 +130,7 @@ public function write($sessionId, $data)
131130
/**
132131
* @return bool
133132
*/
134-
#[ReturnTypeWillChange]
133+
#[\ReturnTypeWillChange]
135134
public function destroy($sessionId)
136135
{
137136
if (!headers_sent() && filter_var(ini_get('session.use_cookies'), \FILTER_VALIDATE_BOOLEAN)) {

‎src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
1313

14-
use ReturnTypeWillChange;
15-
1614
/**
1715
* Adds basic `SessionUpdateTimestampHandlerInterface` behaviors to another `SessionHandlerInterface`.
1816
*
@@ -35,7 +33,7 @@ public function __construct(\SessionHandlerInterface $handler)
3533
/**
3634
* @return bool
3735
*/
38-
#[ReturnTypeWillChange]
36+
#[\ReturnTypeWillChange]
3937
public function open($savePath, $sessionName)
4038
{
4139
parent::open($savePath, $sessionName);
@@ -54,7 +52,7 @@ protected function doRead($sessionId)
5452
/**
5553
* @return bool
5654
*/
57-
#[ReturnTypeWillChange]
55+
#[\ReturnTypeWillChange]
5856
public function updateTimestamp($sessionId, $data)
5957
{
6058
return $this->write($sessionId, $data);
@@ -71,7 +69,7 @@ protected function doWrite($sessionId, $data)
7169
/**
7270
* @return bool
7371
*/
74-
#[ReturnTypeWillChange]
72+
#[\ReturnTypeWillChange]
7573
public function destroy($sessionId)
7674
{
7775
$this->doDestroy = true;
@@ -93,7 +91,7 @@ protected function doDestroy($sessionId)
9391
/**
9492
* @return bool
9593
*/
96-
#[ReturnTypeWillChange]
94+
#[\ReturnTypeWillChange]
9795
public function close()
9896
{
9997
return $this->handler->close();
@@ -102,7 +100,7 @@ public function close()
102100
/**
103101
* @return int|false
104102
*/
105-
#[ReturnTypeWillChange]
103+
#[\ReturnTypeWillChange]
106104
public function gc($maxlifetime)
107105
{
108106
return $this->handler->gc($maxlifetime);

‎src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php
+8-10Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy;
1313

14-
use ReturnTypeWillChange;
15-
1614
/**
1715
* @author Drak <drak@zikula.org>
1816
*/
@@ -40,7 +38,7 @@ public function getHandler()
4038
/**
4139
* @return bool
4240
*/
43-
#[ReturnTypeWillChange]
41+
#[\ReturnTypeWillChange]
4442
public function open($savePath, $sessionName)
4543
{
4644
return (bool) $this->handler->open($savePath, $sessionName);
@@ -49,7 +47,7 @@ public function open($savePath, $sessionName)
4947
/**
5048
* @return bool
5149
*/
52-
#[ReturnTypeWillChange]
50+
#[\ReturnTypeWillChange]
5351
public function close()
5452
{
5553
return (bool) $this->handler->close();
@@ -58,7 +56,7 @@ public function close()
5856
/**
5957
* @return string
6058
*/
61-
#[ReturnTypeWillChange]
59+
#[\ReturnTypeWillChange]
6260
public function read($sessionId)
6361
{
6462
return (string) $this->handler->read($sessionId);
@@ -67,7 +65,7 @@ public function read($sessionId)
6765
/**
6866
* @return bool
6967
*/
70-
#[ReturnTypeWillChange]
68+
#[\ReturnTypeWillChange]
7169
public function write($sessionId, $data)
7270
{
7371
return (bool) $this->handler->write($sessionId, $data);
@@ -76,7 +74,7 @@ public function write($sessionId, $data)
7674
/**
7775
* @return bool
7876
*/
79-
#[ReturnTypeWillChange]
77+
#[\ReturnTypeWillChange]
8078
public function destroy($sessionId)
8179
{
8280
return (bool) $this->handler->destroy($sessionId);
@@ -85,7 +83,7 @@ public function destroy($sessionId)
8583
/**
8684
* @return int|false
8785
*/
88-
#[ReturnTypeWillChange]
86+
#[\ReturnTypeWillChange]
8987
public function gc($maxlifetime)
9088
{
9189
return (int) $this->handler->gc($maxlifetime);
@@ -94,7 +92,7 @@ public function gc($maxlifetime)
9492
/**
9593
* @return bool
9694
*/
97-
#[ReturnTypeWillChange]
95+
#[\ReturnTypeWillChange]
9896
public function validateId($sessionId)
9997
{
10098
return !$this->handler instanceof \SessionUpdateTimestampHandlerInterface || $this->handler->validateId($sessionId);
@@ -103,7 +101,7 @@ public function validateId($sessionId)
103101
/**
104102
* @return bool
105103
*/
106-
#[ReturnTypeWillChange]
104+
#[\ReturnTypeWillChange]
107105
public function updateTimestamp($sessionId, $data)
108106
{
109107
return $this->handler instanceof \SessionUpdateTimestampHandlerInterface ? $this->handler->updateTimestamp($sessionId, $data) : $this->write($sessionId, $data);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.