Skip to content

Commit

Permalink
Merge pull request #46 from sandrokeil/feature/support-php-8
Browse files Browse the repository at this point in the history
Add support for PHP 8
  • Loading branch information
sandrokeil authored Sep 5, 2020
2 parents 308d4ab + 055b9b2 commit acb0c24
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ matrix:
- php: 7.4
env:
- TEST_COVERAGE=true
- php: nightly
- php: 8.0

allow_failures:
- php: nightly
- php: 8.0

before_install:
- mkdir -p "$HOME/.php-cs-fixer"
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 acb0c24

Please sign in to comment.