Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
strategy:
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
with:
PHP_VERSION: ${{ matrix.php }}
LINT_ARGS: '-e php --colors --show-deprecated ./src'
Expand All @@ -54,7 +54,7 @@ jobs:
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main
strategy:
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
include:
- php: '7.4'
composer: '--ignore-platform-req=php'
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/php-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3']
container-version: [ '^1.1.0', '^2' ]
dependency-versions: [ 'lowest', 'highest' ]
include:
Expand All @@ -55,7 +55,7 @@ jobs:

- name: Setup dependencies for PSR-11 target version
run: |
composer remove inpsyde/php-coding-standards --dev --no-update
composer remove syde/phpcs --dev --no-update
composer require "psr/container:${{ matrix.container-version }}" --no-update
composer config --no-plugins allow-plugins.roots/wordpress-core-installer false

Expand All @@ -76,3 +76,9 @@ jobs:
files: ./coverage.xml
flags: unittests
verbose: true
# PHP 8.4 causes many failures with "lowest" dependency version due incompatibility.
# So, we're running it in an isolated step.
test-phpunit-84:
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
with:
PHP_VERSION: "8.4"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
}
],
"require": {
"php": ">=7.4 <8.4",
"php": ">=7.4",
"ext-json": "*",
"psr/container": "^1.1.0 || ^2"
},
"require-dev": {
"brain/monkey": "^2.6.1",
"inpsyde/wp-stubs-versions": "dev-latest",
"inpsyde/wp-stubs-versions": "6.7",
"mikey179/vfsstream": "^v1.6.11",
"phpstan/phpstan": "^2.1.1",
"phpstan/phpstan-deprecation-rules": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
dynamicConstantNames:
- WP_DEBUG
scanFiles:
- vendor/inpsyde/wp-stubs-versions/latest.php
- vendor/inpsyde/wp-stubs-versions/6.7.php
paths:
- src/
- tests/
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="false"
backupGlobals="false"
stopOnFailure="false">
stopOnFailure="false"
failOnWarning="false">

<php>
<ini name="error_reporting" value="E_ALL"/>
Expand Down