Skip to content

Commit

Permalink
Fix: Configure platform in composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 23, 2024
1 parent f7267e0 commit ffa0c6c
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 554 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Remove platform configuration with composer"
if: "matrix.dependencies != 'locked'"
run: "composer config platform.php --ansi --unset"

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

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"platform": {
"php": "7.1"
},
"sort-packages": true
},
"extra": {
Expand Down
Loading

0 comments on commit ffa0c6c

Please sign in to comment.