Skip to content

Commit

Permalink
Fix PHP linting
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Jan 17, 2025
1 parent d8ee03e commit 02d2865
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 28 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
"require-dev": {
"mallardduck/prettier-php-runner": "^1.0",
"pestphp/pest": "^1.23",
"phpstan/phpstan": "^0.12.100",
"phpstan/phpstan": "^2.1",
"spatie/pest-plugin-snapshots": "^1.1",
"squizlabs/php_codesniffer": "^3.6"
},
"scripts": {
"phpcs": "phpcs",
"phpstan": "phpstan analyse",
"lint": ["@lint:style", "@lint:static"],
"lint:style": "phpcs",
"lint:static": "phpstan analyse --memory-limit=1024M",
"fix": ["@fix:style"],
"fix:style": "phpcbf",
"test": "pest"
},
"autoload": {
Expand Down
32 changes: 15 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#$ vendor/bin/phpstan analyze
parameters:
level: max
paths:
- packages/twig-extension
- packages/docs/.symfony/src
checkMissingIterableValueType: false
scanDirectories:
- ./packages/docs/.symfony/vendor/
ignoreErrors: []
# - message: '#^If condition is always true\.#'
# path: ./src/TokenParser/ElementTokenParser.php
ignoreErrors:
- identifier: missingType.iterableValue
- identifier: callable.nonNativeMethod

0 comments on commit 02d2865

Please sign in to comment.