Skip to content

Commit

Permalink
improved PHPStan checks by adding some extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Feb 12, 2022
1 parent 6a8370c commit 55edcae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"doctrine/data-fixtures": "^1.0.1",
"doctrine/dbal": "^2.7|^3",
"doctrine/doctrine-fixtures-bundle": "^2.4.1|^3.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.4",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
"phpstan/phpstan-symfony": "^1.1",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "~4.4|~5.3|^6",
"symfony/phpunit-bridge": "^6",
Expand Down Expand Up @@ -56,6 +60,7 @@
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"symfony/flex": true
},
"sort-packages": true
Expand Down
4 changes: 1 addition & 3 deletions phpstan-config.neon
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
parameters:
level: 5
treatPhpDocTypesAsCertain: false
paths:
- .
excludePaths:
- Tests/*
- vendor/*
ignoreErrors:
-
message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.$#'
path: DependencyInjection/Configuration.php
-
message: '#^Parameter \$manager of method Craue\\GeoBundle\\Doctrine\\Fixtures\\GeonamesPostalCodeData::(getRepository|clearPostalCodesTable|addEntries)\(\) has invalid type Doctrine\\Common\\Persistence\\ObjectManager\.$#'
path: Doctrine/Fixtures/GeonamesPostalCodeData.php
Expand Down

0 comments on commit 55edcae

Please sign in to comment.