forked from diablomedia/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.neon
151 lines (127 loc) · 5.3 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
146
147
148
149
150
151
parameters:
ignoreErrors:
-
message: '#^Return type \(Doctrine1\\Adapter\\Statement\\Mock\|null\) of method Doctrine1\\Adapter\\Mock\:\:prepare\(\) should be compatible with return type \(PDOStatement\|false\) of method PDO\:\:prepare\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Adapter/Mock.php
-
message: '#^Call to function is_object\(\) with Doctrine1\\Adapter\\Mock will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Adapter/Statement/Mock.php
-
message: '#^Call to method Doctrine1\\Cli\:\:classIsTask\(\) with class\-string\<Doctrine1\\Task\> will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: src/Cli.php
-
message: '#^Parameter &\$className by\-ref type of method Doctrine1\\Cli\:\:taskNameIsRegistered\(\) expects class\-string\<Doctrine1\\Task\>\|null, string given\.$#'
identifier: parameterByRef.type
count: 1
path: src/Cli.php
-
message: '#^Call to sprintf contains 1 placeholder, 2 values given\.$#'
identifier: argument.sprintf
count: 1
path: src/Cli/Formatter.php
-
message: '#^Constructor of class Doctrine1\\Connection\\Mock has an unused parameter \$adapter\.$#'
identifier: constructor.unusedParameter
count: 1
path: src/Connection/Mock.php
-
message: '#^Constructor of class Doctrine1\\Connection\\Mock has an unused parameter \$manager\.$#'
identifier: constructor.unusedParameter
count: 1
path: src/Connection/Mock.php
-
message: '#^Call to function is_array\(\) with Doctrine1\\Column will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: src/Export.php
-
message: '#^Method Doctrine1\\Export\:\:createSequenceSql\(\) has Doctrine1\\Connection\\Exception in PHPDoc @throws tag but it''s not thrown\.$#'
identifier: throws.unusedType
count: 1
path: src/Export.php
-
message: '#^Cannot access an offset on array\|Doctrine1\\None\|Traversable\|null\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Hydrator/Graph.php
-
message: '#^Cannot access offset mixed on array\|Doctrine1\\None\|Traversable\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Hydrator/Graph.php
-
message: '#^Cannot access offset mixed on array\|Doctrine1\\None\|Traversable\|null\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Hydrator/Graph.php
-
message: '#^Method Doctrine1\\Hydrator\\Graph\:\:hydrateResultSet\(\) should return iterable\<\(int\|string\), mixed\>\|Traversable but returns \(Collection of array\|Traversable\)\|Doctrine1\\None\|null\.$#'
identifier: return.type
count: 2
path: src/Hydrator/Graph.php
-
message: '#^Parameter \#1 \$coll of method Doctrine1\\Hydrator\\Graph\<Collection of array\|Traversable,Item\>\:\:getLastKey\(\) expects Collection of array\|Traversable, array\|\(ArrayAccess&Traversable\) given\.$#'
identifier: argument.type
count: 1
path: src/Hydrator/Graph.php
-
message: '#^Parameter \$values of class Doctrine1\\Column constructor expects class\-string\<BackedEnum\>\|list\<string\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/Import/Schema.php
-
message: '#^Parameter \#1 \$string of function strtolower expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Import/Sqlite.php
-
message: '#^Variable \$func might not be defined\.$#'
identifier: variable.undefined
count: 1
path: src/Query/Check.php
-
message: '#^Call to an undefined method Doctrine1\\Query\\Condition\:\:load\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Query/Condition.php
-
message: '#^Call to an undefined method Doctrine1\\Query\\Set\:\:parseLiteralValue\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Query/Set.php
-
message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: src/Record.php
-
message: '#^Parameter \$values of class Doctrine1\\Column constructor expects class\-string\<BackedEnum\>\|list\<string\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/Record.php
-
message: '#^Return type \(void\) of method Doctrine1\\Record\\Filter\\Standard\:\:filterSet\(\) should be compatible with return type \(Doctrine1\\Record\) of method Doctrine1\\Record\\Filter\:\:filterSet\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Record/Filter/Standard.php
-
message: '#^Call to function array_key_exists\(\) with ''refTable'' and array\{alias\: string, foreign\: string, local\: string, class\: class\-string\<Doctrine1\\Record\>, type\: int, table\: Doctrine1\\Table, localTable\: Doctrine1\\Table, name\?\: string\|null, \.\.\.\} will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Relation/Association.php
-
message: '#^Variable \$rel in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
count: 1
path: src/Relation/Parser.php
-
message: '#^Cannot call method getConfig\(\) on Doctrine1\\Cli\|null\.$#'
identifier: method.nonObject
count: 1
path: src/Task/GenerateModelsDb.php