-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan-baseline.neon
145 lines (122 loc) · 7.66 KB
/
phpstan-baseline.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
parameters:
ignoreErrors:
-
message: '#^Comparison operation "\>" between 7 and 5 is always true\.$#'
identifier: greater.alwaysTrue
count: 1
path: src/Attribute/RouteParamValue/DynamicValues.php
-
message: '#^Comparison operation "\>" between 7 and 5 is always true\.$#'
identifier: greater.alwaysTrue
count: 1
path: src/Attribute/RouteParamValue/PropertyValues.php
-
message: '#^Parameter \#1 \$configuration of class Sofascore\\PurgatoryBundle\\Cache\\Configuration\\Configuration constructor expects array\<non\-empty\-string, list\<array\{routeName\: string, routeParams\?\: array\<string, array\{type\: string, values\: list\<mixed\>, optional\?\: true\}\>, if\?\: string, actions\?\: non\-empty\-list\<Sofascore\\PurgatoryBundle\\Listener\\Enum\\Action\>\}\>\>, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Cache/Configuration/CachedConfigurationLoader.php
-
message: '#^Method Sofascore\\PurgatoryBundle\\Cache\\Configuration\\Subscriptions\:\:getIterator\(\) should return Traversable\<int, array\{routeName\: string, routeParams\?\: array\<string, array\{type\: string, values\: list\<mixed\>, optional\?\: true\}\>, if\?\: string, actions\?\: non\-empty\-list\<Sofascore\\PurgatoryBundle\\Listener\\Enum\\Action\>\}\> but returns ArrayIterator\<int, array\{routeName\: string, routeParams\?\: array\<string, array\{type\: string, values\: list\<mixed\>, optional\?\: bool\}\>, if\?\: string, actions\?\: non\-empty\-list\<Sofascore\\PurgatoryBundle\\Listener\\Enum\\Action\>\}\>\.$#'
identifier: return.type
count: 1
path: src/Cache/Configuration/Subscriptions.php
-
message: '#^PHPDoc tag @var with type array\<string, int\|string\|null\>\|Doctrine\\ORM\\Mapping\\AssociationMapping is not subtype of native type Doctrine\\ORM\\Mapping\\AssociationMapping\.$#'
identifier: varTag.nativeType
count: 1
path: src/Cache/PropertyResolver/AssociationResolver.php
-
message: '#^Call to function is_subclass_of\(\) with class\-string\<object\> and class\-string will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Cache/PropertyResolver/PropertyResolver.php
-
message: '#^Parameter \#1 \$alias of class Sofascore\\PurgatoryBundle\\Attribute\\RouteParamValue\\DynamicValues constructor expects string, bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue\)\: mixed\)\|null, Closure\(non\-empty\-list\<string\>\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue\)\: \(non\-empty\-list\<string\>\|Sofascore\\PurgatoryBundle\\Attribute\\RouteParamValue\\ValuesInterface\|string\) given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Parameter \#1 \$enum of class Sofascore\\PurgatoryBundle\\Attribute\\RouteParamValue\\EnumValues constructor expects class\-string\<BackedEnum\>, bool\|float\|int\|list\<bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue\>\|string given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Parameter \#1 \$property of class Sofascore\\PurgatoryBundle\\Attribute\\RouteParamValue\\PropertyValues constructor expects string, bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Parameter \#1 \$value of class Sofascore\\PurgatoryBundle\\Attribute\\RouteParamValue\\RawValues constructor expects bool\|float\|int\|string\|null, bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Parameter \#2 \$array of function array_map expects array, bool\|float\|int\|list\<bool\|float\|int\|string\|Symfony\\Component\\Yaml\\Tag\\TaggedValue\>\|string given\.$#'
identifier: argument.type
count: 1
path: src/Cache/RouteMetadata/YamlMetadataProvider.php
-
message: '#^Comparison operation "\>\=" between 2 and 1 is always true\.$#'
identifier: greaterOrEqual.alwaysTrue
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Comparison operation "\>\=" between 7 and 7 is always true\.$#'
identifier: greaterOrEqual.alwaysTrue
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Strict comparison using \=\=\= between \*NEVER\* and 6 will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Strict comparison using \=\=\= between 7 and 6 will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Command/DebugCommand.php
-
message: '#^Comparison operation "\<\=" between 7 and 5 is always false\.$#'
identifier: smallerOrEqual.alwaysFalse
count: 1
path: src/DependencyInjection/CompilerPass/RegisterExpressionLanguageProvidersPass.php
-
message: '#^Comparison operation "\<\=" between 7 and 5 is always false\.$#'
identifier: smallerOrEqual.alwaysFalse
count: 1
path: src/DependencyInjection/CompilerPass/RegisterRouteParamServicesPass.php
-
message: '#^Parameter \#2 \$configurator of method Symfony\\Component\\DependencyInjection\\ContainerBuilder\:\:registerAttributeForAutoconfiguration\(\) expects callable\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\AsExpressionLanguageFunction, Reflector\)\: void, Closure\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\AsExpressionLanguageFunction, ReflectionClass\|ReflectionMethod\)\: void given\.$#'
identifier: argument.type
count: 1
path: src/DependencyInjection/PurgatoryExtension.php
-
message: '#^Parameter \#2 \$configurator of method Symfony\\Component\\DependencyInjection\\ContainerBuilder\:\:registerAttributeForAutoconfiguration\(\) expects callable\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\AsRouteParamService, Reflector\)\: void, Closure\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\AsRouteParamService, ReflectionClass\|ReflectionMethod\)\: void given\.$#'
identifier: argument.type
count: 1
path: src/DependencyInjection/PurgatoryExtension.php
-
message: '#^Parameter \#2 \$configurator of method Symfony\\Component\\DependencyInjection\\ContainerBuilder\:\:registerAttributeForAutoconfiguration\(\) expects callable\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\PurgeOn, Reflector\)\: void, Closure\(Symfony\\Component\\DependencyInjection\\ChildDefinition, Sofascore\\PurgatoryBundle\\Attribute\\PurgeOn, ReflectionClass\|ReflectionMethod\)\: void given\.$#'
identifier: argument.type
count: 1
path: src/DependencyInjection/PurgatoryExtension.php
-
message: '#^Trait Sofascore\\PurgatoryBundle\\Test\\InteractsWithPurgatory is used zero times and is not analysed\.$#'
identifier: trait.unused
count: 1
path: src/Test/InteractsWithPurgatory.php