-
Notifications
You must be signed in to change notification settings - Fork 116
/
phpstan-baseline.neon
145 lines (122 loc) · 4.83 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: '#^Call to an undefined method object\:\:loadHelper\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Command/BakeMigrationCommand.php
-
message: '#^Call to an undefined method object\:\:loadHelper\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Command/BakeMigrationDiffCommand.php
-
message: '#^Call to an undefined method object\:\:loadHelper\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Command/BakeMigrationSnapshotCommand.php
-
message: '#^PHPDoc tag @var with type string is not subtype of native type non\-falsy\-string\|true\.$#'
identifier: varTag.nativeType
count: 1
path: src/Command/BakeSeedCommand.php
-
message: '#^Strict comparison using \!\=\= between string and false will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Command/BakeSeedCommand.php
-
message: '#^Call to an undefined method Cake\\Datasource\\ConnectionInterface\:\:cacheMetadata\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Command/Phinx/CacheBuild.php
-
message: '#^Call to an undefined method Cake\\Datasource\\ConnectionInterface\:\:cacheMetadata\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Command/Phinx/CacheClear.php
-
message: '#^Instanceof between Migrations\\CakeManager and Migrations\\CakeManager will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Command/Phinx/MarkMigrated.php
-
message: '#^Instanceof between Migrations\\CakeManager and Migrations\\CakeManager will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Command/Phinx/Status.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 1
path: src/Db/Adapter/AdapterFactory.php
-
message: '#^Offset ''id'' on non\-empty\-array\<string, mixed\> in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
count: 2
path: src/Db/Adapter/MysqlAdapter.php
-
message: '#^Offset 3 might not exist on array\{0\: string, 1\: non\-empty\-string, 2\?\: string, 3\?\: ''''\|numeric\-string, 4\?\: string, 5\?\: ''''\|numeric\-string, 6\?\: non\-empty\-string\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Db/Adapter/MysqlAdapter.php
-
message: '#^Offset 5 might not exist on array\{0\: string, 1\: non\-empty\-string, 2\?\: string, 3\?\: ''''\|numeric\-string, 4\?\: string, 5\?\: ''''\|numeric\-string, 6\?\: non\-empty\-string\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Db/Adapter/MysqlAdapter.php
-
message: '#^Offset 6 might not exist on array\{0\: string, 1\: non\-empty\-string, 2\?\: string, 3\?\: ''''\|numeric\-string, 4\?\: string, 5\?\: ''''\|numeric\-string, 6\?\: non\-empty\-string\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Db/Adapter/MysqlAdapter.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/Db/Adapter/MysqlAdapter.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/Db/Adapter/SqliteAdapter.php
-
message: '#^PHPDoc tag @return with type Phinx\\Db\\Adapter\\AdapterInterface is not subtype of native type Migrations\\Db\\Adapter\\AdapterInterface\.$#'
identifier: return.phpDocType
count: 1
path: src/Db/Adapter/SqlserverAdapter.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 2
path: src/Db/Adapter/SqlserverAdapter.php
-
message: '#^Call to function method_exists\(\) with Migrations\\MigrationInterface and ''useTransactions'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Migration/Environment.php
-
message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, array given\.$#'
identifier: argument.type
count: 1
path: src/Migration/Manager.php
-
message: '#^PHPDoc tag @var with type array\<string, string\> is not subtype of native type mixed\.$#'
identifier: varTag.nativeType
count: 1
path: src/Migration/ManagerFactory.php
-
message: '#^Method Migrations\\Shim\\OutputAdapter\:\:getVerbosity\(\) should return 16\|32\|64\|128\|256 but returns int\.$#'
identifier: return.type
count: 1
path: src/Shim/OutputAdapter.php
-
message: '#^Offset 0 on non\-empty\-list\<string\> in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
count: 2
path: src/Util/TableFinder.php
-
message: '#^Possibly invalid array key type Cake\\Database\\Schema\\TableSchemaInterface\|string\.$#'
identifier: offsetAccess.invalidOffset
count: 2
path: src/View/Helper/MigrationHelper.php