forked from composer/packagist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
40 lines (31 loc) · 1.36 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# run with: bin/phpstan analyse
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-doctrine/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
- vendor/staabm/phpstan-dba/config/dba.neon
parameters:
level: 8
checkExplicitMixedMissingReturn: true
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
paths:
- src/
symfony:
containerXmlPath: var/cache/dev/App_KernelDevDebugContainer.xml
consoleApplicationLoader: tests/console-application.php
scanDirectories:
# - var/cache/dev/Symfony/Config
bootstrapFiles:
- phpstan-bootstrap.php
doctrine:
objectManagerLoader: tests/object-manager.php
ignoreErrors:
# https://github.com/phpstan/phpstan-doctrine/issues/176
- '~Property App\\Entity\\Dependent::\$type type mapping mismatch: database can contain int but property expects~'
- '~Property App\\Entity\\PhpStat::\$type type mapping mismatch: database can contain int but property expects~'
- '~Property App\\Entity\\PhpStat::\$depth type mapping mismatch: database can contain int but property expects~'
# Will vanish with PHP 8.1
- '~Parameter #2 \$value of function ini_set expects string, int given.~'