Skip to content

Commit

Permalink
Enhancement: Add support for PHP 8.0
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Schranz <[email protected]>
Co-authored-by: Andreas Möller <[email protected]>
  • Loading branch information
localheinz and alexander-schranz committed Feb 23, 2024
1 parent 11cad89 commit a2e6c14
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ jobs:
php-version: "7.4"
dependencies: "highest"

- phpunit-version: "8.0.0"
php-version: "8.0"
dependencies: "lowest"

- phpunit-version: "8.0.0"
php-version: "8.0"
dependencies: "highest"

- phpunit-version: "9.0.0"
php-version: "7.3"
dependencies: "lowest"
Expand All @@ -170,6 +178,14 @@ jobs:
php-version: "7.4"
dependencies: "highest"

- phpunit-version: "9.0.0"
php-version: "8.0"
dependencies: "lowest"

- phpunit-version: "9.0.0"
php-version: "8.0"
dependencies: "highest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
Expand All @@ -195,9 +211,17 @@ jobs:
if: "matrix.dependencies != 'locked'"
run: "composer config platform.php --ansi --unset"

- name: "Remove incompatible dependencies with composer"
if: "matrix.dependencies != 'locked'"
run: "composer remove ergebnis/license ergebnis/php-cs-fixer-config phpspec/prophecy phpunit/phpunit --ansi --dev --no-interaction --no-progress"

- name: "Require phpunit/phpunit:^${{ matrix.phpunit-version }}"
run: "composer require phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --dev --update-with-dependencies"

- name: "Require phpspec/prophecy"
if: "matrix.phpunit-version == '8.0.0' or matrix.phpunit-version == '9.0.0'"
run: "composer require phpspec/prophecy --ansi --dev --update-with-dependencies"

- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "./.github/actions/composer/composer/install"
with:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`1.0.0...main`][1.0.0...master].

### Changed

- Added support for PHP 8.0 ([#324]), by [@alexander-schranz] and [@localheinz]

## [`1.0.0`][1.0.0]

For a full diff see [`0.8.1...1.0.0`][0.8.1...1.0.0].
Expand Down Expand Up @@ -179,6 +183,7 @@ For a full diff see [`afd6fd9...0.1`][afd6fd9...0.1].
[#182]: https://github.com/Jan0707/phpstan-prophecy/pull/182
[#236]: https://github.com/Jan0707/phpstan-prophecy/pull/236
[#266]: https://github.com/Jan0707/phpstan-prophecy/pull/266
[#324]: https://github.com/Jan0707/phpstan-prophecy/pull/324

[@alexander-schranz]: https://github.com/alexander-schranz
[@Jean85]: https://github.com/Jean85
Expand Down

0 comments on commit a2e6c14

Please sign in to comment.