Skip to content

Commit

Permalink
[] syntax (destructuring of arrays) was available from PHP 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gongo committed Aug 30, 2023
1 parent 675d214 commit 325dfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/SessionTest.php
Expand Up @@ -50,7 +50,7 @@ public function testPolluteSessionNotStarted()
$this->object = new Session;
$this->object->pollute();

[$errno, $errstr, $args] = $errored;
list($errno, $errstr, $args) = $errored;
$this->assertEquals(E_USER_WARNING, $errno);
$this->assertEquals('The session not yet started (Ignoring)', $errstr);
}
Expand Down

0 comments on commit 325dfe3

Please sign in to comment.