Skip to content

Commit

Permalink
Upgrade PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 3, 2024
1 parent dc95d05 commit 0238811
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/coverage
/vendor
/composer.lock
.idea
nbproject
.vscode
.DS_Store

*.local
*.cache

/phpunit.xml
/.phpunit.result.cache
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
"friendsofphp/php-cs-fixer": "^3.0",
"mikey179/vfsstream": "^1.6.7",
"php-mock/php-mock-phpunit": "^2.1",
"phpstan/phpstan": "^0.12.58",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^9.4",
"predis/predis": "^1.1",
"spatie/async": "^1.5"
Expand Down
16 changes: 10 additions & 6 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon

parameters:
level: 5
level: 6
checkMissingOverrideMethodAttribute: true
paths:
- ./
excludes_analyse:
- vendor/
- .
excludePaths:
- vendor

# TODO review once we drop PHP 7.x support
treatPhpDocTypesAsCertain: false
ignoreErrors:
- '~^Unsafe usage of new static\(\)\.$~'

0 comments on commit 0238811

Please sign in to comment.