Skip to content

Commit be900b1

Browse files
committed
fixed short array CS in comments
1 parent 0dfa0f7 commit be900b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Input/ArrayInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* Usage:
2121
*
22-
* $input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar'));
22+
* $input = new ArrayInput(['name' => 'foo', '--bar' => 'foobar']);
2323
*
2424
* @author Fabien Potencier <[email protected]>
2525
*/

Input/InputDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
*
2020
* Usage:
2121
*
22-
* $definition = new InputDefinition(array(
22+
* $definition = new InputDefinition([
2323
* new InputArgument('name', InputArgument::REQUIRED),
2424
* new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
25-
* ));
25+
* ]);
2626
*
2727
* @author Fabien Potencier <[email protected]>
2828
*/

Tests/Input/InputDefinitionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function testGetArgumentDefaults()
186186
new InputArgument('foo1', InputArgument::OPTIONAL),
187187
new InputArgument('foo2', InputArgument::OPTIONAL, '', 'default'),
188188
new InputArgument('foo3', InputArgument::OPTIONAL | InputArgument::IS_ARRAY),
189-
// new InputArgument('foo4', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '', array(1, 2)),
189+
// new InputArgument('foo4', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '', [1, 2]),
190190
]);
191191
$this->assertEquals(['foo1' => null, 'foo2' => 'default', 'foo3' => []], $definition->getArgumentDefaults(), '->getArgumentDefaults() return the default values for each argument');
192192

0 commit comments

Comments
 (0)