Skip to content

Commit

Permalink
PHP 8.1 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmysiak authored and Martin Fris committed Apr 11, 2022
1 parent 3427523 commit 762d72d
Show file tree
Hide file tree
Showing 10 changed files with 395 additions and 307 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4', '8.0' ]
php-versions: [ '7.4', '8.0', '8.1' ]

steps:
- uses: actions/checkout@v2
Expand Down
21 changes: 13 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"beberlei/assert": "^3.3",
"doctrine/annotations": "^1.12",
"ocramius/proxy-manager": "^2.13",
"psr/simple-cache": "^1.0",
"symfony/cache": "^5.3",
"symfony/framework-bundle": "^5.3",
"symfony/proxy-manager-bridge": "^5.3"
"psr/simple-cache": "^1.0|^2.0|^3.0",
"symfony/cache": "^5.3|^6.0",
"symfony/framework-bundle": "^5.3|^6.0",
"symfony/proxy-manager-bridge": "^5.3|^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"jakub-onderka/php-parallel-lint": "^1.0",
"madewithlove/license-checker": "^0.10.0",
"madewithlove/license-checker": "^0.10|^1.0",
"nikic/php-parser": "^4.2",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpcompatibility/php-compatibility": "^9.1",
"phpmd/phpmd": "^2.6",
"phpro/grumphp": "^1.3",
Expand All @@ -39,7 +39,7 @@
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.4",
"symfony/monolog-bundle": "^3.7",
"symfony/phpunit-bridge": "^5.3",
"symfony/phpunit-bridge": "^5.3|^6.0",
"vimeo/psalm": "^4.0"
},
"autoload": {
Expand All @@ -53,11 +53,16 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpro/grumphp": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"grumphp7.4": "grumphp run --testsuite=php7.4",
"grumphp8.0": "grumphp run --testsuite=php8.0",
"grumphp8.1": "grumphp run --testsuite=php8.1",
"lic-check": "license-checker check",
"phpcs": "phpcs --standard=phpcs.ruleset.xml src",
"phpcbf": "phpcbf --standard=phpcs.ruleset.xml --extensions=php --tab-width=4 -sp src tests",
Expand Down
Loading

0 comments on commit 762d72d

Please sign in to comment.