Skip to content

Commit

Permalink
allow PHP 8.2, drop PHP 7.4 and update CI config
Browse files Browse the repository at this point in the history
note that for PHP 8.2 a few build tools around PhpStan needed to be
updated, which makes dropping PHP 7.4 mandatory
  • Loading branch information
driehle authored and neilime committed Dec 22, 2023
1 parent 98dcbd8 commit 9f6644b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
include:
- php-versions: "7.4"
- php-versions: "8.0"
- php-versions: "8.1"
- php-versions: "8.2"
stable: true

runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"twitter/bootstrap": "Twitter bootstrap assets"
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"laminas/laminas-escaper": "^2.9",
"laminas/laminas-form": "^3.1",
"laminas/laminas-i18n": "^2.13",
Expand All @@ -37,16 +37,16 @@
"laminas/laminas-view": "^2.16"
},
"require-dev": {
"laminas/laminas-component-installer": "^2.6",
"laminas/laminas-component-installer": "^3.0",
"laminas/laminas-modulemanager": "^2.11",
"laminas/laminas-mvc": "^3.3",
"mikey179/vfsstream": "^1.6",
"pcov/clobber": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^9.5.11",
"slam/phpstan-laminas-framework": "^0.12",
"slam/phpstan-laminas-framework": "^1.0",
"spatie/phpunit-snapshot-assertions": "^4.2.13",
"squizlabs/php_codesniffer": "^3.6"
},
Expand Down
5 changes: 2 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
parameters:
ignoreErrors:
- '/Call to an undefined method Laminas\\View\\Helper\\AbstractHelper::/'
treatPhpDocTypesAsCertain: false
laminasframework:
serviceManagerLoader: tests/phpstan.php
excludePaths:
- src/DocumentationGenerator/UsagePage/Prettifier/SourceFile.php
- src/DocumentationGenerator/UsagePage/Prettifier/PhpPrettifier.php
- src/DocumentationGenerator/UsagePage/Prettifier/PhpPrettifier.php

0 comments on commit 9f6644b

Please sign in to comment.