Skip to content

Commit ca4d37c

Browse files
authored
MergePluginTest.php: Switch to short array syntax
1 parent 6ab0202 commit ca4d37c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/phpunit/MergePluginTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public function testRecursiveIncludesWithSubDirectory()
300300

301301
$root = $this->rootFromJson("{$dir}/composer.json");
302302

303-
$packages = array();
303+
$packages = [];
304304
$root->setRequires(Argument::type('array'))->will(
305305
function ($args) use (&$packages) {
306306
$packages = array_merge($packages, $args[0]);
@@ -407,7 +407,7 @@ function () use ($repoManager) {
407407

408408
$root = $this->rootFromJson("{$dir}/composer.json");
409409

410-
$packages = array();
410+
$packages = [];
411411
$root->setRequires(Argument::type('array'))->will(
412412
function ($args) use (&$packages) {
413413
$packages = array_merge($packages, $args[0]);
@@ -451,7 +451,7 @@ public function testRecursiveRequires()
451451

452452
$root = $this->rootFromJson("{$dir}/composer.json");
453453

454-
$packages = array();
454+
$packages = [];
455455

456456
$root->setRequires(Argument::type('array'))->will(
457457
function ($args) use (&$packages) {
@@ -489,7 +489,7 @@ public function testRecursiveRequiresWithSubDirectory()
489489

490490
$root = $this->rootFromJson("{$dir}/composer.json");
491491

492-
$packages = array();
492+
$packages = [];
493493
$root->setRequires(Argument::type('array'))->will(
494494
function ($args) use (&$packages) {
495495
$packages = array_merge($packages, $args[0]);

0 commit comments

Comments
 (0)