-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathphpstan.neon
34 lines (29 loc) · 1.23 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
parameters:
level: max
paths:
- src
- tests
symfony:
container_xml_path: %rootDir%/../../../var/cache/test/App_KernelTestDebugContainer.xml
console_application_loader: tests/console-application.php
doctrine:
objectManagerLoader: tests/object-manager.php
# https://github.com/phpstan/phpstan/issues/694#issuecomment-350724288
bootstrapFiles:
- vendor/bin/.phpunit/phpunit-8.5-0/vendor/autoload.php
ignoreErrors:
# these are already checked in the class
- '#Cannot call method api\(\) on Github\\Client\|null#'
- '#expects Github\\Client, Github\\Client\|null given#'
- '#Cannot call method getAttribute\(\) on DOMNode\|null#'
# because `session` service is deprecated in Symfony 5 and can't find a way to set
# a session variable within tests
-
message: '#is not registered in the container#'
path: tests/Security/GithubAuthenticatorTest.php
-
message: '#on object\|null#'
path: tests/Security/GithubAuthenticatorTest.php
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false