Skip to content

Commit

Permalink
Avoid using PHP 5.4+ syntax for arrays
Browse files Browse the repository at this point in the history
We still support 5.3 here.

Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Dec 6, 2017
1 parent 15742c9 commit 10f4e57
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Lexer/ContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public function testLoadClosest($context, $expected)

public function contextLoading()
{
return [
'MySQL match' => ['MySql50500', 'MySql50500'],
'MySQL strip' => ['MySql50712', 'MySql50700'],
'MySQL fallback' => ['MySql99999', 'MySql50700'],
'MariaDB match' => ['MariaDb100000', 'MariaDb100000'],
'MariaDB strip' => ['MariaDb109900', 'MariaDb100000'],
'MariaDB fallback' => ['MariaDb990000', 'MariaDb100300'],
'Invalid' => ['Sql', null],
];
return array(
'MySQL match' => array('MySql50500', 'MySql50500'),
'MySQL strip' => array('MySql50712', 'MySql50700'),
'MySQL fallback' => array('MySql99999', 'MySql50700'),
'MariaDB match' => array('MariaDb100000', 'MariaDb100000'),
'MariaDB stripg' => array('MariaDb109900', 'MariaDb100000'),
'MariaDB fallback' => array('MariaDb990000', 'MariaDb100300'),
'Invalid' => array('Sql', null),
);
}

/**
Expand Down

0 comments on commit 10f4e57

Please sign in to comment.