Skip to content

Commit 97c7633

Browse files
authored
Merge pull request #255 from andypost/php8
Allow installing on PHP 8
2 parents 81fcbf7 + c03e46e commit 97c7633

14 files changed

+25
-23
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ matrix:
4040
env: SYMFONY_REQUIRE=4.4.*
4141
- php: 7.4
4242
env: SYMFONY_REQUIRE=5.0.*
43+
- php: nightly
44+
env: COMPOSER_FLAGS="--no-interaction --ignore-platform-reqs" SYMFONY_PHPUNIT_VERSION=9 SYMFONY_REQUIRE=5.0.*
4345
fast_finish: true
4446
allow_failures:
4547

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.2",
18+
"php": "^7.2 || ^8.0",
1919
"symfony/routing": "^4.4 || ^5.0",
2020
"symfony/http-kernel": "^4.4 || ^5.0",
2121
"psr/log": "^1.0"

tests/Unit/Enhancer/ContentRepositoryEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ContentRepositoryEnhancerTest extends TestCase
2222
/**
2323
* {@inheritdoc}
2424
*/
25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
$cRepository = $this->createMock(ContentRepositoryInterface::class);
2828
$cRepository

tests/Unit/Enhancer/FieldByClassEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FieldByClassEnhancerTest extends TestCase
2626

2727
private $document;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
$this->document = $this->createMock(RouteObject::class);
3232

tests/Unit/Enhancer/FieldMapEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FieldMapEnhancerTest extends TestCase
2727
*/
2828
private $enhancer;
2929

30-
public function setUp()
30+
public function setUp(): void
3131
{
3232
$this->request = Request::create('/test');
3333
$mapping = ['static_pages' => 'cmf_content.controller:indexAction'];

tests/Unit/Enhancer/FieldPresenceEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FieldPresenceEnhancerTest extends TestCase
2424

2525
private $request;
2626

27-
public function setUp()
27+
public function setUp(): void
2828
{
2929
$this->mapper = new FieldPresenceEnhancer('_template', '_controller', 'cmf_content.controller:indexAction');
3030

tests/Unit/Enhancer/RouteContentEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RouteContentEnhancerTest extends TestCase
2828

2929
private $request;
3030

31-
public function setUp()
31+
public function setUp(): void
3232
{
3333
$this->document = $this->createMock(RouteObject::class);
3434

tests/Unit/NestedMatcher/NestedMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NestedMatcherTest extends TestCase
3131

3232
private $finalMatcher;
3333

34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
$this->provider = $this->createMock(RouteProviderInterface::class);
3737
$this->routeFilter1 = $this->createMock(RouteFilterInterface::class);

tests/Unit/NestedMatcher/UrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class UrlMatcherTest extends TestCase
5454
*/
5555
private $url = '/foo/bar';
5656

57-
public function setUp()
57+
public function setUp(): void
5858
{
5959
$this->routeDocument = $this->createMock(RouteMock::class);
6060
$this->routeCompiled = $this->createMock(CompiledRoute::class);

tests/Unit/Routing/ChainRouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ChainRouterTest extends TestCase
4242
*/
4343
private $context;
4444

45-
public function setUp()
45+
public function setUp(): void
4646
{
4747
$this->router = new ChainRouter($this->createMock(LoggerInterface::class));
4848
$this->context = $this->createMock(RequestContext::class);

0 commit comments

Comments
 (0)