Skip to content

Commit

Permalink
Add PHP 8 compatibility (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Feb 12, 2021
1 parent b819a92 commit 1333fd3
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/php:7.4-node-browsers
- image: circleci/php:8.0-node-browsers

steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.1 || ^8.0",
"twig/twig": "^1.34 || ^2.4 || ^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.11",
"jangregor/phpstan-prophecy": "^0.8",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^7.1",
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^7.1 || ^8.5",
"symfony/intl": "^2.8 || ^3.0 || ^4.0 || ^5.0",
"symfony/property-access": "^2.8 || ^3.0 || ^4.0 || ^5.0",
"thecodingmachine/phpstan-strict-rules": "^0.12"
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ComponentExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ComponentExtensionTest extends TestCase
*/
private $componentExtension;

public function setUp(): void
protected function setUp(): void
{
$this->componentExtension = new ComponentExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/CountExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CountExtensionTest extends TestCase
*/
private $countExtension;

public function setUp(): void
protected function setUp(): void
{
$this->countExtension = new CountExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EditorExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EditorExtensionTest extends TestCase
*/
private $editorExtension;

public function setUp(): void
protected function setUp(): void
{
$this->editorExtension = new EditorExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ImageExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ImageExtensionTest extends TestCase
*/
private $svgImage;

public function setUp(): void
protected function setUp(): void
{
$this->imageExtension = new ImageExtension('/lazy');
$this->image = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/IntlExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class IntlExtensionTest extends TestCase
*/
private $intlExtension;

public function setUp(): void
protected function setUp(): void
{
$this->intlExtension = new IntlExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/PortalExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PortalExtensionTest extends TestCase
*/
private $portalExtension;

public function setUp(): void
protected function setUp(): void
{
$this->portalExtension = new PortalExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UrlExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UrlExtensionTest extends TestCase
*/
private $urlExtension;

public function setUp(): void
protected function setUp(): void
{
$this->urlExtension = new UrlExtension();
}
Expand Down

0 comments on commit 1333fd3

Please sign in to comment.