Skip to content

Commit df71b07

Browse files
committed
Updated to php v5.4
1 parent 4a9357e commit df71b07

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.3.0",
14+
"php": ">=5.4.0",
1515
"arachne/bootstrap": "~0.1",
1616
"codeception/codeception": "~2.0",
1717
"nette/bootstrap": "~2.2",

src/Console/RunTestInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RunTestInput extends ArgvInput
1717

1818
public function __construct(InputDefinition $definition = NULL)
1919
{
20-
$parameters = array($_SERVER['argv'][0], 'run');
20+
$parameters = [ $_SERVER['argv'][0], 'run' ];
2121

2222
if (isset($_SERVER['argv'][1])) {
2323
$filename = $this->normalizePath($_SERVER['argv'][1]);

src/Module/Nette.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Nette extends Framework
3535
private $path;
3636

3737
// TODO: separate ArachneTools module (debugContent method)
38-
public function _beforeSuite($settings = array())
38+
public function _beforeSuite($settings = [])
3939
{
4040
parent::_beforeSuite($settings);
4141

@@ -53,11 +53,11 @@ public function _before(TestCase $test)
5353
$this->configurator = new Configurator();
5454
$this->configurator->setDebugMode(FALSE);
5555
$this->configurator->setTempDirectory($tempDir);
56-
$this->configurator->addParameters(array(
57-
'container' => array(
56+
$this->configurator->addParameters([
57+
'container' => [
5858
'class' => $this->getContainerClass(),
59-
),
60-
));
59+
],
60+
]);
6161
$this->configurator->onCompile[] = function ($config, Compiler $compiler) {
6262
$compiler->addExtension('arachne.codeception', new CodeceptionExtension());
6363
};
@@ -86,10 +86,10 @@ public function _before(TestCase $test)
8686
public function _after(TestCase $test)
8787
{
8888
parent::_after($test);
89-
$_SESSION = array();
90-
$_GET = array();
91-
$_POST = array();
92-
$_COOKIE = array();
89+
$_SESSION = [];
90+
$_GET = [];
91+
$_POST = [];
92+
$_COOKIE = [];
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)