Skip to content

Commit

Permalink
Allow PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Oct 25, 2024
1 parent 77af041 commit e5b33b9
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.3"
- "8.4"
operating-system:
- "ubuntu-latest"

Expand All @@ -28,7 +28,10 @@ jobs:
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
if: matrix.php-versions == '8.4'
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "caching dependencies"
uses: "actions/cache@v4"
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10 -O
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10 -O
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/documentation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10 -O
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.3"
- "8.4"
operating-system:
- "ubuntu-latest"

Expand All @@ -38,6 +38,10 @@ jobs:
key: "php-${{ matrix.php-version }}"
restore-keys: "php-${{ matrix.php-version }}"

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preload-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/security-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10 -O
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
- name: "installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
php-version: "8.4"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
extensions: bcmath, mbstring, intl, sodium, json

- name: "Ignore PHP platform requirements"
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10 -O
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
php-version:
- "8.2"
- "8.3"
- "8.4"
operating-system:
- "macos-latest"
- "ubuntu-latest"
Expand All @@ -41,6 +42,11 @@ jobs:
key: "php-${{ matrix.php-version }}"
restore-keys: "php-${{ matrix.php-version }}"

- name: "Ignore PHP platform requirements"
if: matrix.php-versions == '8.4'
run: |
export COMPOSER_IGNORE_PLATFORM_REQ=php+
- name: "installing dependencies"
run: |
make install -j10
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-bcmath": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down

0 comments on commit e5b33b9

Please sign in to comment.