Skip to content

Commit 04224e7

Browse files
committed
SessionSection: magic accessors & ArrayAccess are silently deprecated
1 parent 870a936 commit 04224e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Http/SessionSection.php

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

9898
/**
9999
* Sets a variable in this session section.
100+
* @deprecated
100101
*/
101102
public function __set(string $name, $value): void
102103
{
@@ -107,6 +108,7 @@ public function __set(string $name, $value): void
107108

108109
/**
109110
* Gets a variable from this session section.
111+
* @deprecated
110112
*/
111113
public function &__get(string $name): mixed
112114
{
@@ -118,6 +120,7 @@ public function &__get(string $name): mixed
118120

119121
/**
120122
* Determines whether a variable in this session section is set.
123+
* @deprecated
121124
*/
122125
public function __isset(string $name): bool
123126
{
@@ -128,6 +131,7 @@ public function __isset(string $name): bool
128131

129132
/**
130133
* Unsets a variable in this session section.
134+
* @deprecated
131135
*/
132136
public function __unset(string $name): void
133137
{
@@ -137,6 +141,7 @@ public function __unset(string $name): void
137141

138142
/**
139143
* Sets a variable in this session section.
144+
* @deprecated
140145
*/
141146
public function offsetSet($name, $value): void
142147
{
@@ -146,6 +151,7 @@ public function offsetSet($name, $value): void
146151

147152
/**
148153
* Gets a variable from this session section.
154+
* @deprecated
149155
*/
150156
public function offsetGet($name): mixed
151157
{
@@ -155,6 +161,7 @@ public function offsetGet($name): mixed
155161

156162
/**
157163
* Determines whether a variable in this session section is set.
164+
* @deprecated
158165
*/
159166
public function offsetExists($name): bool
160167
{
@@ -164,6 +171,7 @@ public function offsetExists($name): bool
164171

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

0 commit comments

Comments
 (0)