-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpstan.tests.neon
61 lines (46 loc) · 3 KB
/
phpstan.tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
treatPhpDocTypesAsCertain: false
dynamicConstantNames:
- Symfony\Component\HttpKernel\Kernel::VERSION_ID
- Twig\Environment::MAJOR_VERSION
excludePaths:
- tests/application/public/bundles/
- tests/application/config/bootstrap.php
- tests/application/src/Kernel.php
- tests/application/src/LegacyKernel.php
ignoreErrors:
# Doctrine DBAL
-
message: '#Cannot call method fetchAllAssociative\(\) on Doctrine\\DBAL\\Result\|int#'
path: tests/lib/Persistence/Doctrine/Helper/PositionHelperTest.php
# Compatibility with Symfony 3.4
- '#Method .+::createRequestEvent\(\) should return .+\\RequestEvent but returns .+\\GetResponseEvent.#'
- '#Method .+::createResponseEvent\(\) should return .+\\ResponseEvent but returns .+\\FilterResponseEvent.#'
- '#Method .+::createExceptionEvent\(\) should return .+\\ExceptionEvent but returns .+\\GetResponseForExceptionEvent.#'
- '#Method .+::createViewEvent\(\) should return .+\\ViewEvent but returns .+\\GetResponseForControllerResultEvent.#'
- '#Method .+::createTerminateEvent\(\) should return .+\\TerminateEvent but returns .+\\PostResponseEvent.#'
# PHPUnit 8
- "#Call to function method_exists\\(\\) with 'PHPUnit\\\\\\\\Framework\\\\\\\\Assert'#"
- "#Call to function method_exists\\(\\) with 'Ramsey\\\\\\\\Uuid\\\\\\\\UuidFactoryInterface' and 'getValidator' will always evaluate to true.#"
# Disable errors about missing value types in PHPUnit data providers
- '#Method .+Test(Base|Case)?::\w+DataProvider\(\) return type has no value type specified in iterable type iterable.#'
# Disable errors for various tests that verify values have correct types or arrays not having certain elements
- '/Parameter \#1 \$\w+ of class .+ constructor expects array\<.+\>, array\<.+\|stdClass\> given./'
- '/Parameter \#3 \$zoneMappings of method .+::validateChangeLayoutType\(\) expects array\<string, array\<string\>\>, array\<string, int\> given./'
- '#expects array<Closure\|Symfony\\Component\\Validator\\Constraint>, array{stdClass} given.#'
# Disable errors for various "only read/written" properties
- '#\$\w+ is never (written|read), only (read|written).#'
- '#JsonApiTestCase::\$client is not the same as PHPDoc type#'
-
message: '#Undefined variable: \$this#'
path: tests/lib/Transfer/Output/Visitor/Integration
- "#Call to function method_exists\\(\\) with .* and 'setNodeTag' will always evaluate to true.#"
-
message: "#Offset 'db' does not exist on array#"
path: tests/lib/Persistence/Doctrine/DatabaseTrait.php