Skip to content
Permalink
Browse files

Deprecate the ArrayAccess interface methods.

These methods were compatibility shims from the 1.x days. Deprecating
these methods now will make implementing PSR7 simpler as these methods
cannot work on immutable objects.

Refs #9325
  • Loading branch information...
markstory committed Aug 25, 2016
1 parent 1fc70ed commit 477e7562c0f6d896808ae176751725fec56aa7ad
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Network/Request.php
@@ -1369,6 +1369,7 @@ public function setInput($input)
*
* @param string $name Name of the key being accessed.
* @return mixed
* @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use param(), data() and query() instead.
*/
public function offsetGet($name)
{
@@ -1391,6 +1392,7 @@ public function offsetGet($name)
* @param string $name Name of the key being written
* @param mixed $value The value being written.
* @return void
* @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use param(), data() and query() instead.
*/
public function offsetSet($name, $value)
{
@@ -1402,6 +1404,7 @@ public function offsetSet($name, $value)
*
* @param string $name thing to check.
* @return bool
* @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use param(), data() and query() instead.
*/
public function offsetExists($name)
{
@@ -1417,6 +1420,7 @@ public function offsetExists($name)
*
* @param string $name Name to unset.
* @return void
* @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use param(), data() and query() instead.
*/
public function offsetUnset($name)
{

0 comments on commit 477e756

Please sign in to comment.
You can’t perform that action at this time.