Skip to content

Commit

Permalink
Update PHPStan level to 6 and fix violations and bump minimum PHP to …
Browse files Browse the repository at this point in the history
…7.2 (#69)

* Update PHPStan level to 6 and fix violations, bump min PHP to 7.2, update GitHub workflows.

* Update composer.lock.

* Ensure correct namespace usage and line lengths.

* Align multiple subsequent assignments.
  • Loading branch information
felixarntz authored Aug 29, 2024
1 parent 54cd44d commit 177d4fd
Show file tree
Hide file tree
Showing 26 changed files with 429 additions and 496 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 177d4fd

Please sign in to comment.