Skip to content

Commit e2e28a6

Browse files
php 5.4+ requirement
1 parent 4eb3119 commit e2e28a6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Bridge/FormFactory/ConsoleFormWithDefaultValuesAndOptionsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function create($formType, InputInterface $input, array $options = [])
6767
*/
6868
private function addDefaultOptions(array $options)
6969
{
70-
$defaultOptions = array();
70+
$defaultOptions = [];
7171

7272
// hack to prevent validation error "The CSRF token is invalid."
7373
foreach ($this->formRegistry->getExtensions() as $extension) {

src/Console/Formatter/Format.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function registerStyles(OutputInterface $output)
3636
{
3737
$formatter = $output->getFormatter();
3838

39-
$formatter->setStyle('fieldset', new OutputFormatterStyle('yellow', null, array('bold')));
39+
$formatter->setStyle('fieldset', new OutputFormatterStyle('yellow', null, ['bold']));
4040
$formatter->setStyle('default', new OutputFormatterStyle('green'));
4141
$formatter->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
4242
}

src/Console/Formatter/StylesCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class StylesCollection
1010
/**
1111
* @var OutputFormatterStyleInterface[]
1212
*/
13-
private $styles = array();
13+
private $styles = [];
1414

1515
/**
1616
* @param string $name

src/Console/Helper/HelperCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
class HelperCollection
99
{
10-
private $helpers;
1110
/**
1211
* @var array
1312
*/
13+
private $helpers = [];
1414

1515
/**
1616
* @param HelperInterface $helper

src/Console/Helper/Question/AlwaysReturnKeyOfChoiceQuestion.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public function getValidator()
7474
}
7575
$selectedChoices = explode(',', $selectedChoices);
7676
} else {
77-
$selectedChoices = array($selected);
77+
$selectedChoices = [$selected];
7878
}
7979

80-
$selectedKeys = array();
80+
$selectedKeys = [];
8181

8282
foreach ($selectedChoices as $selectedValue) {
8383
$selectedKeys[] = $this->resolveChoiceViewValue($selectedValue);
@@ -132,7 +132,7 @@ private function prepareChoices()
132132
*/
133133
private function prepareAutocompleteValues()
134134
{
135-
$autocompleteValues = array();
135+
$autocompleteValues = [];
136136

137137
foreach ($this->choiceViews as $choiceView) {
138138
$autocompleteValues[] = $choiceView->value;

0 commit comments

Comments
 (0)