Skip to content

Commit 27e043c

Browse files
Some more php 7.0 changes
1 parent 7e039aa commit 27e043c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Configuration/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ final class Generator
77
/**
88
* @var string
99
*/
10-
private const TEMPLATE_XML = <<<EOT
10+
const TEMPLATE_XML = <<<EOT
1111
<?xml version="1.0" encoding="UTF-8"?>
1212
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1313
xsi:noNamespaceSchemaLocation="https://schema.phpbu.de/{phpbu_version}/phpbu.xsd"
@@ -39,7 +39,7 @@ final class Generator
3939
/**
4040
* @var string
4141
*/
42-
private const TEMPLATE_JSON = <<<EOT
42+
const TEMPLATE_JSON = <<<EOT
4343
{
4444
"bootstrap": "{bootstrap_script}",
4545
"verbose": true,

tests/phpbu/Configuration/Loader/JsonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase
2424
/**
2525
* Create the AppFactory
2626
*/
27-
public static function setUpBeforeClass() : void
27+
public static function setUpBeforeClass()
2828
{
2929
self::$factory = new Factory();
3030
}

tests/phpbu/Configuration/Loader/XmlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class XmlTest extends \PHPUnit\Framework\TestCase
2525
/**
2626
* Create the AppFactory
2727
*/
28-
public static function setUpBeforeClass() : void
28+
public static function setUpBeforeClass()
2929
{
3030
self::$factory = new Factory();
3131
}

tests/phpbu/Util/CliTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class CliTest extends \PHPUnit\Framework\TestCase
2424
/**
2525
* Backup $_SERVER settings.
2626
*/
27-
public function setup() : void
27+
public function setup()
2828
{
2929
self::$server = $_SERVER;
3030
}
3131

3232
/**
3333
* Restore $_SERVER settings.
3434
*/
35-
public function tearDown() : void
35+
public function tearDown()
3636
{
3737
$_SERVER = self::$server;
3838
}

0 commit comments

Comments
 (0)