Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PHP 8 #628

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- "7.4"
operating-system:
- "ubuntu-latest"
include:
- php-version: "8.0"
dependencies: "highest"
operating-system: "ubuntu-latest"

steps:
- name: "Checkout"
Expand All @@ -44,15 +48,15 @@ jobs:

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest --ignore-platform-req=php"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"
run: "composer update --no-interaction --no-progress --no-suggest --ignore-platform-req=php"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"
run: "composer install --no-interaction --no-progress --no-suggest --ignore-platform-req=php"

- name: "Tests"
run: "vendor/bin/phpunit"
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
}
],
"require": {
"php": "~7.4.1",
"laminas/laminas-code": "^3.4.1",
"php": "~7.4.1 || ~8.0.0",
"laminas/laminas-code": "^3.5.0",
"composer-runtime-api": "^2.0.0",
"webimpress/safe-writer": "^2.0.1"
},
Expand All @@ -31,14 +31,14 @@
},
"require-dev": {
"ext-phar": "*",
"phpunit/phpunit": "^9.2.5",
"phpunit/phpunit": "^9.4.1",
"squizlabs/php_codesniffer": "^3.5.5",
"slevomat/coding-standard": "^6.3.10",
"doctrine/coding-standard": "^8.1.0",
"nikic/php-parser": "^4.6.0",
"phpbench/phpbench": "^0.17.1",
"infection/infection": "^0.16.4",
"vimeo/psalm": "^3.12.2",
"phpbench/phpbench": "^0.17.1 || 1.0.0-alpha2",
"infection/infection": "^0.20.1",
"vimeo/psalm": "^4.2.1",
"codelicia/xulieta": "^0.1.2"
},
"suggest": {
Expand Down
Loading