Skip to content

Commit

Permalink
Update PHPStan level to 6 and fix violations, bump min PHP to 7.2, up…
Browse files Browse the repository at this point in the history
…date GitHub workflows.
  • Loading branch information
felixarntz committed Aug 29, 2024
1 parent 54cd44d commit 0537239
Show file tree
Hide file tree
Showing 17 changed files with 388 additions and 474 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/php-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'

- name: Validate Composer configuration
run: composer validate

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
with:
composer-options: '--prefer-dist --no-progress --no-interaction'
- name: Install Composer dependencies
run: composer update

- name: PHP Lint
run: composer lint
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,17 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'

- name: Validate Composer configuration
run: composer validate

- name: Install PHP dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6
with:
composer-options: '--prefer-dist --no-progress --no-interaction'
- name: Install Composer dependencies
run: composer update

- name: PHPUnit Test
run: composer test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "Apache-2.0",
"require": {
"php": ">=7"
"php": ">=7.2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
Expand Down
Loading

0 comments on commit 0537239

Please sign in to comment.