-
Notifications
You must be signed in to change notification settings - Fork 118
/
phpstan-config.neon
76 lines (76 loc) · 3.72 KB
/
phpstan-config.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
parameters:
level: 5
treatPhpDocTypesAsCertain: false
paths:
- .
excludePaths:
- Tests/*
- vendor/*
ignoreErrors:
-
message: '#^Unsafe usage of new static\(\)\.$#'
path: Form/Step.php
# TODO remove as soon as Symfony >= 5.0 is required
-
message: '#^Property Craue\\FormFlowBundle\\EventListener\\(FlowExpired|PreviousStepInvalid)EventListener::\$translator has unknown class Symfony\\Component\\Translation\\TranslatorInterface as its type\.$#'
paths:
- EventListener/FlowExpiredEventListener.php
- EventListener/PreviousStepInvalidEventListener.php
# TODO remove as soon as Symfony >= 5.0 is required
-
message: '#^Parameter \$translator of method Craue\\FormFlowBundle\\EventListener\\(FlowExpired|PreviousStepInvalid)EventListener::setTranslator\(\) has invalid type Symfony\\Component\\Translation\\TranslatorInterface\.$#'
paths:
- EventListener/FlowExpiredEventListener.php
- EventListener/PreviousStepInvalidEventListener.php
# TODO remove as soon as Symfony >= 5.0 is required
-
message: '#^Class Symfony\\Component\\Translation\\TranslatorInterface not found\.$#'
paths:
- EventListener/FlowExpiredEventListener.php
- EventListener/PreviousStepInvalidEventListener.php
# TODO remove as soon as Symfony >= 5.0 is required
-
message: '#^Call to method trans\(\) on an unknown class Symfony\\Component\\Translation\\TranslatorInterface\.$#'
paths:
- EventListener/FlowExpiredEventListener.php
- EventListener/PreviousStepInvalidEventListener.php
# TODO remove as soon as Symfony >= 5.1 is required
-
message: '#^Parameter \#2 \$default of method Symfony\\Component\\HttpFoundation\\InputBag\<bool\|float\|int\|string\>::get\(\) expects bool\|float\|int\|string\|null, array given\.$#'
path: Form/FormFlow.php
# TODO remove as soon as Symfony >= 5.1 is required
-
message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component\\\\\\\\HttpFoundation\\\\\\\\RequestStack' and 'getSession' will always evaluate to true\\.$#"
paths:
- CraueFormFlowBundle.php
- Storage\SessionProviderTrait.php
# TODO remove as soon as Symfony >= 5.3 is required
-
message: "#^Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Security\\\\Core\\\\Authentication\\\\Token\\\\TokenInterface and 'getUserIdentifier' will always evaluate to true\\.$#"
path: Storage/UserSessionStorageKeyGenerator.php
# TODO remove as soon as Symfony >= 5.3 is required
-
message: '#^Call to an undefined method Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getUsername\(\)\.$#'
path: Storage\UserSessionStorageKeyGenerator.php
# TODO remove as soon as Doctrine DBAL >= 2.13.1 is required
-
message: """
#^Call to deprecated method execute\\(\\) of class Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder\\:
Use \\{@see executeQuery\\(\\)\\} or \\{@see executeStatement\\(\\)\\} instead\\.$#
"""
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.0 is required
-
message: '#^Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\|string\.$#'
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.1 is required
-
message: "#^Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Connection and 'createSchemaManager' will always evaluate to true\\.$#"
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.1 is required
-
message: """
#^Call to deprecated method getSchemaManager\\(\\) of class Doctrine\\\\DBAL\\\\Connection\\:
Use \\{@see createSchemaManager\\(\\)\\} instead\\.$#
"""
path: Storage/DoctrineStorage.php