Skip to content

Commit

Permalink
add phpstan config and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Feb 24, 2023
1 parent c5d3d6a commit 8fc9bd6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -31,7 +31,9 @@
"heimrichhannot/contao-test-utilities-bundle": "^0.1",
"phpunit/phpunit": "^8.0 || ^9.0",
"php-coveralls/php-coveralls": "^2.0",
"symfony/phpunit-bridge": "^3.2 || ^4.0 || ^5.0"
"symfony/phpunit-bridge": "^3.2 || ^4.0 || ^5.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-symfony": "^1.2"
},
"conflict": {
"heimrichhannot/contao-encore-bundle": "<1.5"
Expand Down
19 changes: 19 additions & 0 deletions phpstan.neon
@@ -0,0 +1,19 @@
parameters:
level: 0
paths:
- src/Util
- tests/Util
# universalObjectCratesClasses:
# - Contao\LayoutModel
# - Contao\Model
# - Contao\Template
# - PHPUnit\Framework\MockObject\MockObject
# ignoreErrors:
# - message: '#^Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject\:\:setName\(\)\.$#'
# path: tests/EventListener/Contao/ParseTemplateListenerTest.php
# - message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:getChildNodeDefinitions\(\)\.$#'
# path: tests/DependencyInjection/ConfigurationTest.php
# - message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\NodeInterface\:\:getChildren\(\)\.$#'
# path: tests/DependencyInjection/ConfigurationTest.php
includes:
- vendor/phpstan/phpstan-symfony/extension.neon

0 comments on commit 8fc9bd6

Please sign in to comment.