Skip to content

Commit a6c461e

Browse files
committed
Use array() instead of [] for PHP 5.3
1 parent 1644d6a commit a6c461e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Sabberworm/CSS/ParserTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ function parsedStructureForFile($sFileName, $oSettings = null) {
443443
function testLineNumbersParsing() {
444444
$oDoc = $this->parsedStructureForFile('line-numbers');
445445
// array key is the expected line number
446-
$aExpected = [
446+
$aExpected = array(
447447
1 => ['Sabberworm\CSS\Property\Charset'],
448448
3 => ['Sabberworm\CSS\Property\CSSNamespace'],
449449
5 => ['Sabberworm\CSS\RuleSet\AtRuleSet'],
@@ -452,9 +452,9 @@ function testLineNumbersParsing() {
452452
17 => ['Sabberworm\CSS\CSSList\KeyFrame', 18, 20],
453453
23 => ['Sabberworm\CSS\Property\Import'],
454454
25 => ['Sabberworm\CSS\RuleSet\DeclarationBlock']
455-
];
455+
);
456456

457-
$aActual = [];
457+
$aActual = array();
458458
foreach ($oDoc->getContents() as $oContent) {
459459
$aActual[$oContent->getLineNo()] = [get_class($oContent)];
460460
if ($oContent instanceof KeyFrame) {
@@ -464,8 +464,8 @@ function testLineNumbersParsing() {
464464
}
465465
}
466466

467-
$aUrlExpected = [7, 26]; // expected line numbers
468-
$aUrlActual = [];
467+
$aUrlExpected = array(7, 26); // expected line numbers
468+
$aUrlActual = array();
469469
foreach ($oDoc->getAllValues() as $oValue) {
470470
if ($oValue instanceof URL) {
471471
$aUrlActual[] = $oValue->getLineNo();

0 commit comments

Comments
 (0)