Skip to content

Commit

Permalink
[TASK] Add compatibility with PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Aug 2, 2022
1 parent 2d761c7 commit 338bb94
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -47,14 +48,15 @@ jobs:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies for PHP <= 8.0
if: matrix.php-versions <= '8.0'
- name: Install composer dependencies for PHP <= 8.1
if: matrix.php-versions <= '8.1'
run: |
composer remove --dev infection/infection symplify/phpstan-rules --no-progress
- name: Install composer dependencies for PHP 8.1
if: matrix.php-versions == '8.1'
composer remove --dev infection/infection symplify/phpstan-rules --no-update
composer install --prefer-dist --no-progress --no-suggest
- name: Install composer dependencies for PHP 8.2
if: matrix.php-versions == '8.2'
run: |
composer install --no-progress
composer install --prefer-dist --no-progress --no-suggest --ignore-platform-req=php+
- name: Run PHP linter
run: |
find . -name \*.php ! -path "./vendor/*" -exec php -l {} \;
Expand Down Expand Up @@ -85,7 +87,7 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer update --no-progress --prefer-dist --optimize-autoloader
composer update --prefer-dist --no-progress --no-suggest
- name: Normalize composer.json
run: |
composer normalize --dry-run
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Compatibility with PHP 8.2

## [1.3.0] - 2022-05-26

### Added
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
`Unreleased <https://github.com/brotkrueml/jobrouter-client/compare/v1.3.0...HEAD>`_
----------------------------------------------------------------------------------------

Added
^^^^^


* Compatibility with PHP 8.2

`1.3.0 <https://github.com/brotkrueml/jobrouter-client/compare/v1.2.0...v1.3.0>`_ - 2022-05-26
--------------------------------------------------------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ JobRouter Client JobRouter® PHP
1.1 4.2 - 5.2 7.3 - 8.1
---------------- --------------------------- ---------
1.2 / 1.3 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.1
---------------- --------------------------- ---------
1.4 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.2
================ =========================== =========

You can use, for example, JobRouter Client version 1.0 on JobRouter® version 5.2
Expand Down

0 comments on commit 338bb94

Please sign in to comment.