Skip to content

Commit 50ae7b6

Browse files
committed
Initialize support for php 8
1 parent 9a0359f commit 50ae7b6

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.idea
3+
.phpunit.result.cache
34
composer.lock
45
coverage
56
docs/_site

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ matrix:
99
- php: 7.3
1010
- php: 7.4
1111
env: ANALYSIS='true'
12+
- php: nightly
13+
14+
allow_failures:
15+
- php: nightly
1216

1317
before_script:
1418
- if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-coveralls:^2.2.0 ; fi

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
]
3535
},
3636
"require": {
37-
"php": "^7.1",
37+
"php": "^7.2 || ^8.0",
3838
"nikic/php-parser": "^4.4"
3939
},
4040
"require-dev": {
4141
"phpstan/phpstan": "^0.12.25",
42-
"phpunit/phpunit": "^7.5",
42+
"phpunit/phpunit": "^8.5",
4343
"squizlabs/php_codesniffer": "^3.5"
4444
},
4545
"scripts": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.1/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.5/phpunit.xsd"
44
backupGlobals="true"
55
beStrictAboutOutputDuringTests="true"
66
colors="true"

tests/AbstractIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ abstract class AbstractIntegrationTest extends TestCase
1919

2020
private static $classLoader;
2121

22-
public static function setUpBeforeClass()
22+
public static function setUpBeforeClass(): void
2323
{
2424
self::$classLoader = require(__DIR__ . '/../vendor/autoload.php');
2525
}
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
parent::setUp();
3030
if (!$this->overrideApplied) {

tests/FileStreamWrapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FileStreamWrapperTest extends TestCase
2222
*/
2323
private $tempFilePath;
2424

25-
protected function tearDown()
25+
protected function tearDown(): void
2626
{
2727
// Make sure that we restore the default file stream wrapper.
2828
\stream_wrapper_restore('file');

tests/IntegrationCustomNamespaceTest.php

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

1313
class IntegrationCustomNamespaceTest extends AbstractIntegrationTest
1414
{
15-
public static function setUpBeforeClass()
15+
public static function setUpBeforeClass(): void
1616
{
1717
require_once(__DIR__ . '/assets/PHPCustomAutoloadOverride.php');
1818
}

tests/IntegrationNamespaceTest.php

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

1313
class IntegrationNamespaceTest extends AbstractIntegrationTest
1414
{
15-
public static function setUpBeforeClass()
15+
public static function setUpBeforeClass(): void
1616
{
1717
require_once(__DIR__ . '/assets/PHPAutoloadOverride.php');
1818
}

0 commit comments

Comments
 (0)