-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon
42 lines (31 loc) · 1.59 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
41
42
includes:
- vendor/phpstan/phpstan-strict-rules/rules.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
parameters:
excludePaths:
- bundle/Templating/Twig/LegacyDebugTemplate.php
ignoreErrors:
# Doctrine specifics
- '#Property Netgen\\Bundle\\SiteBundle\\Entity\\UserAccountKey::\$id is never written, only read#'
# Ibexa DXP specifics
- '#Access to an undefined property Ibexa\\Contracts\\Core\\FieldType\\Value::\$\w+#'
- '#Cannot access property \$\w+ on Ibexa\\Contracts\\Core\\FieldType\\Value\|null#'
# Wrong typehints in vendor packages
-
message: '/Parameter #2 \$value of method Knp\\Menu\\ItemInterface::setAttribute\(\) expects bool\|string\|null, int\|null given/'
path: bundle/Menu/RelationListMenuBuilder.php
-
message: '#has parameter \$parameters with no value type specified in iterable type array#'
path: bundle/Core/MVC/Symfony/FieldType/BinaryBase/ContentDownloadUrlGenerator.php
-
message: '#has parameter \$parameters with no value type specified in iterable type array#'
path: bundle/QueryType/SearchQueryType.php
-
message: '#has parameter \$(blocks|context) with no value type specified in iterable type array#'
path: bundle/Templating/Twig/
-
message: '#Offset \d does not exist on array#'
path: bundle/RichText/Converter/Link.php