Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for PHP 8.4 #500

Merged
merged 2 commits into from
Dec 20, 2024
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
25 changes: 8 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@ updates:
schedule:
interval: "daily"
- package-ecosystem: "composer"
directory: "/tools/cs-fixer"
schedule:
interval: "monthly"
- package-ecosystem: "composer"
directory: "/tools/infection"
schedule:
interval: "monthly"
- package-ecosystem: "composer"
directory: "/tools/phpbench"
schedule:
interval: "monthly"
- package-ecosystem: "composer"
directory: "/tools/phpstan"
schedule:
interval: "monthly"
- package-ecosystem: "composer"
directory: "/tools/psalm"
directories:
- "/tools/cs-fixer"
- "/tools/infection"
- "/tools/phpbench"
- "/tools/phpstan"
- "/tools/psalm"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -40,10 +41,10 @@ jobs:
- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
uses: "actions/cache@v4"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -84,10 +85,10 @@ jobs:
- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
uses: "actions/cache@v4"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
Expand All @@ -106,7 +107,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -119,10 +120,10 @@ jobs:
- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
uses: "actions/cache@v4"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "~8.1 || ~8.2 || ~8.3",
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4",
"ext-filter": "*",
"ext-json": "*",
"ext-simplexml": "*",
Expand Down Expand Up @@ -47,7 +47,10 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"platform": {
"php": "8.1"
}
},
"scripts": {
"benchmark": [
Expand Down Expand Up @@ -79,14 +82,14 @@
"composer install --working-dir=./tools/infection",
"composer install --working-dir=./tools/phpbench",
"composer install --working-dir=./tools/phpstan",
"composer install --working-dir=./tools/psalm"
"composer install --working-dir=./tools/psalm --ignore-platform-req=php"
],
"tools:update": [
"composer update --working-dir=./tools/cs-fixer",
"composer update --working-dir=./tools/infection",
"composer update --working-dir=./tools/phpbench",
"composer update --working-dir=./tools/phpstan",
"composer update --working-dir=./tools/psalm"
"composer update --working-dir=./tools/psalm --ignore-platform-req=php"
],
"post-install-cmd": [
"@tools:install"
Expand Down
Loading
Loading