[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: strategy:
matrix: matrix:
php-version: php-version:
- 7.4
- 7.3 - 7.3
- 7.4
- 8.0
dependencies: dependencies:
- highest - highest
@ -73,7 +74,7 @@ jobs:
php-version: php-version:
- 7.3 - 7.3
- 7.4 - 7.4
- nightly - 8.0
symfony-version: symfony-version:
- 3 - 3
@ -81,8 +82,8 @@ jobs:
- 5 - 5
exclude: exclude:
- php-version: 7.1 - php-version: 8.0
symfony-version: 5 symfony-version: 3
steps: steps:
- name: "Checkout" - name: "Checkout"

1
.gitignore vendored
View File

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

View File

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

View File

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