-
Notifications
You must be signed in to change notification settings - Fork 18
feat!: bump minimum supported PHP version to 8.1 #348
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
base: next-major
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Lint | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| pull_request: {} | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0 | ||
| with: | ||
| php-version: "8.1" | ||
| tools: "composer" | ||
|
|
||
| - name: Cache Composer packages | ||
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | ||
| with: | ||
| path: vendor | ||
| key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-php-8.1- | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| composer install --prefer-dist --no-progress --no-interaction | ||
|
|
||
| - name: Lint and formatting | ||
| run: | | ||
| composer run-script format-check | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "[github-actions-workflow]": { | ||
| "editor.defaultFormatter": "redhat.vscode-yaml" | ||
| }, | ||
| "[json]": { | ||
| "editor.defaultFormatter": "vscode.json-language-features" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,13 +10,13 @@ | |
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=7.3.0", | ||
| "php": ">=8.1.0", | ||
| "ext-curl": "*", | ||
| "paragonie/halite": "^4.0" | ||
| "paragonie/halite": "^5.1" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Upgrading While the PR title correctly signals a breaking change ( |
||
| }, | ||
| "require-dev": { | ||
| "friendsofphp/php-cs-fixer": "^2.15|^3.6", | ||
| "phpunit/phpunit": "^9" | ||
| "friendsofphp/php-cs-fixer": "^3.0", | ||
| "phpunit/phpunit": "^10.5" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main, notnext-majorThe
pushtrigger is scoped only tomain, but this PR targetsnext-major. Any direct commits tonext-major(e.g. merge commits, chore bumps) will not trigger the lint workflow — only PRs will. This matches the existing behavior ofci.yml, but it may be worth addingnext-majorto both push trigger lists to keep the branch continuously green:Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!