Skip to content

Commit 9a092c1

Browse files
authored
It is better to use "[]" instead of "array()". (#89)
1 parent 9cb795b commit 9a092c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Cors.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ class Cors implements HttpKernelInterface
2727
*/
2828
private $cors;
2929

30-
private $defaultOptions = array(
31-
'allowedHeaders' => array(),
32-
'allowedMethods' => array(),
33-
'allowedOrigins' => array(),
34-
'allowedOriginsPatterns' => array(),
35-
'exposedHeaders' => array(),
30+
private $defaultOptions = [
31+
'allowedHeaders' => [],
32+
'allowedMethods' => [],
33+
'allowedOrigins' => [],
34+
'allowedOriginsPatterns' => [],
35+
'exposedHeaders' => [],
3636
'maxAge' => 0,
3737
'supportsCredentials' => false,
38-
);
38+
];
3939

40-
public function __construct(HttpKernelInterface $app, array $options = array())
40+
public function __construct(HttpKernelInterface $app, array $options = [])
4141
{
4242
$this->app = $app;
4343
$this->cors = new CorsService(array_merge($this->defaultOptions, $options));

0 commit comments

Comments
 (0)