forked from craue/CraueFormFlowBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-config.neon
72 lines (72 loc) · 3.46 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
parameters:
level: 5
paths:
- .
autoload_files:
# TODO remove as soon as Symfony >= 5.0 is required
- Form/Extension/FormFlowFormExtension.php
- Form/Extension/FormFlowHiddenFieldExtension.php
excludes_analyse:
- Tests/*
- vendor/*
treatPhpDocTypesAsCertain: false
ignoreErrors:
-
message: '#^Unsafe usage of new static\(\)\.$#'
path: Form/Step.php
# TODO remove as soon as Symfony >= 4.1 is required
- '#^Parameter \#5 \$test of class Symfony\\Component\\HttpFoundation\\File\\UploadedFile constructor expects bool, null given\.$#'
# TODO remove as soon as Symfony >= 4.1 is required
-
message: '#^Class Symfony\\Component\\HttpFoundation\\File\\UploadedFile constructor invoked with 6 parameters, 2-5 required\.$#'
path: Storage/SerializableFile.php
# TODO remove as soon as Symfony >= 4.3 is required
-
message: '#^Comparison operation "<" between \d{5} and 40300 is always false\.$#'
paths:
- Event/FormFlowEvent.php
- Form/FormFlow.php
# TODO remove as soon as Symfony >= 4.3 is required
-
message: '#^Parameter \#1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string given\.$#'
path: Form/FormFlow.php
# TODO remove as soon as Symfony >= 4.3 is required
-
message: '#^Parameter \#2 \$eventName of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects string\|null, Craue\\FormFlowBundle\\Event\\FormFlowEvent given\.$#'
path: Form/FormFlow.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 typehint 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.3 is required
-
message: '#^Call to an undefined method Symfony\\Component\\HttpFoundation\\RequestStack::getSession\(\)\.$#'
path: Storage/SessionProviderTrait.php
# TODO remove as soon as Doctrine DBAL >= 3.0 is required
-
message: '#^Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\.$#'
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.0 is required
-
message: '#^Access to undefined constant Doctrine\\DBAL\\Types\\Type::(STRING|TARRAY)\.$#'
path: Storage/DoctrineStorage.php