Commit da892c08 authored by Markus Poerschke's avatar Markus Poerschke

Use long array syntax to keep support for PHP 5.3

parent 5c0f08f7
......@@ -9,6 +9,7 @@ return Symfony\CS\Config\Config::create()
'align_equals',
'align_double_arrow',
'unused_use',
'long_array_syntax',
))
->finder($finder)
;
......@@ -129,13 +129,13 @@ abstract class Component
*/
private function buildComponents(array &$lines)
{
$componentsByType = [];
$componentsByType = array();
/** @var $component Component */
foreach ($this->components as $component) {
$type = $component->getType();
if (!isset($componentsByType[$type])) {
$componentsByType[$type] = [];
$componentsByType[$type] = array();
}
$componentsByType[$type][] = $component;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment