Skip to content

Commit

Permalink
Add support for PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrokeil committed Sep 5, 2020
1 parent 308d4ab commit 01e8a5b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -42,6 +42,7 @@ before_install:
- composer update --prefer-dist

script:
- phpenv versions
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit --no-coverage ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,24 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 2.2.0 (2020-09-05)

### Added

* PHP 8 support

### Deprecated

* Nothing

### Removed

* Nothing

### Fixed

* Nothing

## 2.1.0 (2017-02-14)

### Added
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -42,14 +42,14 @@
}
},
"require": {
"php": "^7.1"
"php": "^7.1 || ^8.0"
},
"require-dev": {
"bookdown/bookdown": "^1.1.0",
"malukenho/docheader": "^0.1.7",
"php-coveralls/php-coveralls": "^2.1",
"phpbench/phpbench": "^0.15",
"phpunit/phpunit": "^7.0.1",
"phpunit/phpunit": "^7.0.1 || ^9.3.8",
"squizlabs/php_codesniffer": "^3.0",
"webuni/commonmark-attributes-extension": "^0.5.0",
"webuni/commonmark-table-extension": "^0.6.1"
Expand Down
4 changes: 2 additions & 2 deletions test/Tool/ConfigDumperCommandTest.php
Expand Up @@ -51,7 +51,7 @@ class ConfigDumperCommandTest extends TestCase
private $consoleHelper;


public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -65,7 +65,7 @@ public function setUp()
$this->consoleHelper = new ConsoleHelper($this->inputStream, $this->outputStream, $this->errorStream);
}

public function tearDown()
public function tearDown(): void
{
stream_wrapper_unregister('test');
TestAsset\TestStream::$inputStack = [];
Expand Down
4 changes: 2 additions & 2 deletions test/Tool/ConfigDumperTest.php
Expand Up @@ -48,7 +48,7 @@ class ConfigDumperTest extends TestCase
private $consoleHelper;


public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -62,7 +62,7 @@ public function setUp()
$this->consoleHelper = new ConsoleHelper($this->inputStream, $this->outputStream, $this->errorStream);
}

public function tearDown()
public function tearDown(): void
{
stream_wrapper_unregister('test');
TestAsset\TestStream::$inputStack = [];
Expand Down
4 changes: 2 additions & 2 deletions test/Tool/ConfigReaderCommandTest.php
Expand Up @@ -51,7 +51,7 @@ class ConfigReaderCommandTest extends TestCase
private $consoleHelper;


public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -67,7 +67,7 @@ public function setUp()
file_put_contents(self::CONFIG_FILE, $this->getTestConfig());
}

public function tearDown()
public function tearDown(): void
{
stream_wrapper_unregister('test');
TestAsset\TestStream::$inputStack = [];
Expand Down
4 changes: 2 additions & 2 deletions test/Tool/ConfigReaderTest.php
Expand Up @@ -49,7 +49,7 @@ class ConfigReaderTest extends TestCase
private $consoleHelper;


public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -63,7 +63,7 @@ public function setUp()
$this->consoleHelper = new ConsoleHelper($this->inputStream, $this->outputStream, $this->errorStream);
}

public function tearDown()
public function tearDown(): void
{
stream_wrapper_unregister('test');
TestAsset\TestStream::$inputStack = [];
Expand Down

0 comments on commit 01e8a5b

Please sign in to comment.