Skip to content

Commit

Permalink
SessionSection: magic accessors & ArrayAccess are silently deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 12, 2021
1 parent 870a936 commit 04224e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Http/SessionSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function remove(string|array|null $name = null): void

/**
* Sets a variable in this session section.
* @deprecated
*/
public function __set(string $name, $value): void
{
Expand All @@ -107,6 +108,7 @@ public function __set(string $name, $value): void

/**
* Gets a variable from this session section.
* @deprecated
*/
public function &__get(string $name): mixed
{
Expand All @@ -118,6 +120,7 @@ public function &__get(string $name): mixed

/**
* Determines whether a variable in this session section is set.
* @deprecated
*/
public function __isset(string $name): bool
{
Expand All @@ -128,6 +131,7 @@ public function __isset(string $name): bool

/**
* Unsets a variable in this session section.
* @deprecated
*/
public function __unset(string $name): void
{
Expand All @@ -137,6 +141,7 @@ public function __unset(string $name): void

/**
* Sets a variable in this session section.
* @deprecated
*/
public function offsetSet($name, $value): void
{
Expand All @@ -146,6 +151,7 @@ public function offsetSet($name, $value): void

/**
* Gets a variable from this session section.
* @deprecated
*/
public function offsetGet($name): mixed
{
Expand All @@ -155,6 +161,7 @@ public function offsetGet($name): mixed

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

/**
* Unsets a variable in this session section.
* @deprecated
*/
public function offsetUnset($name): void
{
Expand Down

0 comments on commit 04224e7

Please sign in to comment.