Skip to content

Commit 59e76dc

Browse files
committed
SessionSection: magic accessors & ArrayAccess are silently deprecated
1 parent 24cd268 commit 59e76dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Http/SessionSection.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function remove(string|array|null $name = null): void
9696

9797
/**
9898
* Sets a variable in this session section.
99+
* @deprecated
99100
*/
100101
public function __set(string $name, $value): void
101102
{
@@ -106,6 +107,7 @@ public function __set(string $name, $value): void
106107

107108
/**
108109
* Gets a variable from this session section.
110+
* @deprecated
109111
*/
110112
public function &__get(string $name): mixed
111113
{
@@ -117,6 +119,7 @@ public function &__get(string $name): mixed
117119

118120
/**
119121
* Determines whether a variable in this session section is set.
122+
* @deprecated
120123
*/
121124
public function __isset(string $name): bool
122125
{
@@ -127,6 +130,7 @@ public function __isset(string $name): bool
127130

128131
/**
129132
* Unsets a variable in this session section.
133+
* @deprecated
130134
*/
131135
public function __unset(string $name): void
132136
{
@@ -136,6 +140,7 @@ public function __unset(string $name): void
136140

137141
/**
138142
* Sets a variable in this session section.
143+
* @deprecated
139144
*/
140145
public function offsetSet($name, $value): void
141146
{
@@ -145,6 +150,7 @@ public function offsetSet($name, $value): void
145150

146151
/**
147152
* Gets a variable from this session section.
153+
* @deprecated
148154
*/
149155
public function offsetGet($name): mixed
150156
{
@@ -154,6 +160,7 @@ public function offsetGet($name): mixed
154160

155161
/**
156162
* Determines whether a variable in this session section is set.
163+
* @deprecated
157164
*/
158165
public function offsetExists($name): bool
159166
{
@@ -163,6 +170,7 @@ public function offsetExists($name): bool
163170

164171
/**
165172
* Unsets a variable in this session section.
173+
* @deprecated
166174
*/
167175
public function offsetUnset($name): void
168176
{

0 commit comments

Comments
 (0)