Skip to content

Commit 5f0f6bd

Browse files
authored
Allow PHP >= 8.0 & Drop PHP < 7.3 (#26)
* Allow PHP 8.x * Drop support for PHP < 7.3
1 parent 37df160 commit 5f0f6bd

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/tests.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
strategy:
1515
matrix:
1616
include:
17-
- php-version: 7.1
17+
- php-version: 7.3
1818
symfony-version: 4.4.*
19+
- php-version: 7.3
20+
symfony-version: 5.2.*
1921
- php-version: 7.4
20-
symfony-version: 4.4.*
21-
- php-version: 7.2
22-
symfony-version: 5.1.*
23-
- php-version: 7.4
24-
symfony-version: 5.1.*
22+
symfony-version: 5.2.*
23+
- php-version: 8.0
24+
symfony-version: 5.2.*
2525

2626
steps:
2727
- name: "Checkout"
@@ -48,8 +48,8 @@ jobs:
4848
strategy:
4949
matrix:
5050
include:
51-
- php-version: 7.4
52-
symfony-version: 5.1.*
51+
- php-version: 8.0
52+
symfony-version: 5.2.*
5353

5454
steps:
5555
- name: "Checkout"
@@ -75,8 +75,8 @@ jobs:
7575
strategy:
7676
matrix:
7777
include:
78-
- php-version: 7.4
79-
symfony-version: 5.1.*
78+
- php-version: 8.0
79+
symfony-version: 5.2.*
8080

8181
steps:
8282
- name: "Checkout"

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^7.1",
28+
"php": "^7.3|^8.0",
2929
"sonata-project/admin-bundle": "^3.0",
3030
"symfony/workflow": "^4.4|^5.0"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^7.5",
33+
"phpunit/phpunit": "^8.5|^9.5",
3434
"squizlabs/php_codesniffer": "^3.5"
3535
}
3636
}

tests/Controller/WorkflowControllerTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ class WorkflowControllerTest extends TestCase
5959
*/
6060
private $flashBag;
6161

62-
public function setUp()
62+
protected function setUp(): void
6363
{
64+
parent::setUp();
65+
6466
$this->container = $this->prophesize(ContainerInterface::class);
6567
$this->admin = $this->prophesize(AdminInterface::class);
6668
$this->registry = new Registry();

0 commit comments

Comments
 (0)