[internal] allow development on php8 (#114)

This commit is contained in:
Farhad Safarov 2020-12-08 12:45:11 +03:00 committed by GitHub
parent aef28735fd
commit 2dd4b18a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View File

@ -17,8 +17,9 @@ jobs:
strategy:
matrix:
php-version:
- 7.4
- 7.3
- 7.4
- 8.0
dependencies:
- highest
@ -73,7 +74,7 @@ jobs:
php-version:
- 7.3
- 7.4
- nightly
- 8.0
symfony-version:
- 3
@ -81,8 +82,8 @@ jobs:
- 5
exclude:
- php-version: 7.1
symfony-version: 5
- php-version: 8.0
symfony-version: 3
steps:
- name: "Checkout"

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ composer.lock
.php_cs.cache
tests/_run
/.idea
/.phpunit.result.cache

View File

@ -16,8 +16,8 @@
"vimeo/psalm": "^4.0"
},
"require-dev": {
"doctrine/orm": "^2.7",
"phpunit/phpunit": "~7.5",
"doctrine/orm": "^2.8",
"phpunit/phpunit": "~7.5 || ~9.5",
"symfony/cache-contracts": "^1.0 || ^2.0",
"symfony/console": "*",
"symfony/messenger": "^4.2 || ^5.0",
@ -25,7 +25,7 @@
"symfony/serializer": "^4.0 || ^5.0",
"symfony/validator": "*",
"twig/twig": "^2.10 || ^3.0",
"weirdan/codeception-psalm-module": "~0.9"
"weirdan/codeception-psalm-module": "^0.13.1"
},
"autoload": {
"psr-4": {

View File

@ -18,12 +18,12 @@ class ContainerMetaTest extends TestCase
*/
private $containerMeta;
public function setUp()
public function setUp(): void
{
$this->containerMeta = new ContainerMeta([__DIR__.'/../../acceptance/container.xml']);
}
public function tearDown()
public function tearDown(): void
{
unset($this->containerMeta);
}