Session: Implement ArrayAccess
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 10 Feb 2016 16:43:23 +0000 (11:43 -0500)
committerAnomie <bjorsch@wikimedia.org>
Tue, 16 Feb 2016 17:33:33 +0000 (17:33 +0000)
commit1aedd2df73ad2be69fb24148bfaff31c118fddba
tree390736323b02fa50c9896d27a2901f9c45817cef
parentb06ff790ae282699ff611309fb82118c652c6c66
Session: Implement ArrayAccess

Now that we dropped support for PHP 5.3.3, we can do this.

The behavior of $session['foo'] when that key doesn't already exist is a
little unexpected (it implicitly assigns null), but it's the best we can
do.

Change-Id: Ibef878867d46591a8bf542139a1719dfec3b83ab
includes/session/Session.php
includes/session/SessionBackend.php
tests/phpunit/includes/session/SessionBackendTest.php
tests/phpunit/includes/session/SessionTest.php
tests/phpunit/includes/session/TestUtils.php