Skip to content

Commit 5500338

Browse files
committed
Fix baseline
1 parent 706eaf4 commit 5500338

File tree

1 file changed

+15
-39
lines changed

1 file changed

+15
-39
lines changed

phpstan-baseline.neon

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@ parameters:
66
count: 1
77
path: src/Command/BakeMigrationCommand.php
88

9-
-
10-
message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parseFields\(\) expects array\<string\>, array\<int\<min, \-1\>\|int\<1, max\>, list\<string\>\|string\> given\.$#'
11-
identifier: argument.type
12-
count: 1
13-
path: src/Command/BakeMigrationCommand.php
14-
15-
-
16-
message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parseIndexes\(\) expects array\<string\>, array\<int\<min, \-1\>\|int\<1, max\>, list\<string\>\|string\> given\.$#'
17-
identifier: argument.type
18-
count: 1
19-
path: src/Command/BakeMigrationCommand.php
20-
21-
-
22-
message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parsePrimaryKey\(\) expects array\<string\>, array\<int\<min, \-1\>\|int\<1, max\>, list\<string\>\|string\> given\.$#'
23-
identifier: argument.type
24-
count: 1
25-
path: src/Command/BakeMigrationCommand.php
26-
279
-
2810
message: '#^Call to an undefined method object\:\:loadHelper\(\)\.$#'
2911
identifier: method.notFound
@@ -60,6 +42,18 @@ parameters:
6042
count: 1
6143
path: src/Command/Phinx/CacheClear.php
6244

45+
-
46+
message: '#^Instanceof between Migrations\\CakeManager and Migrations\\CakeManager will always evaluate to true\.$#'
47+
identifier: instanceof.alwaysTrue
48+
count: 1
49+
path: src/Command/Phinx/MarkMigrated.php
50+
51+
-
52+
message: '#^Instanceof between Migrations\\CakeManager and Migrations\\CakeManager will always evaluate to true\.$#'
53+
identifier: instanceof.alwaysTrue
54+
count: 1
55+
path: src/Command/Phinx/Status.php
56+
6357
-
6458
message: '#^Unsafe usage of new static\(\)\.$#'
6559
identifier: new.static
@@ -115,10 +109,10 @@ parameters:
115109
path: src/Db/Adapter/SqlserverAdapter.php
116110

117111
-
118-
message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:verbose\(\) expects list\<string\>\|string, array\<non\-falsy\-string\> given\.$#'
119-
identifier: argument.type
112+
message: '#^Call to function method_exists\(\) with Migrations\\MigrationInterface and ''useTransactions'' will always evaluate to true\.$#'
113+
identifier: function.alreadyNarrowedType
120114
count: 1
121-
path: src/Migration/Manager.php
115+
path: src/Migration/Environment.php
122116

123117
-
124118
message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, array given\.$#'
@@ -138,24 +132,6 @@ parameters:
138132
count: 1
139133
path: src/Shim/OutputAdapter.php
140134

141-
-
142-
message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:out\(\) expects list\<string\>\|string, array\|string given\.$#'
143-
identifier: argument.type
144-
count: 2
145-
path: src/Shim/OutputAdapter.php
146-
147-
-
148-
message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:dropTables\(\) expects list\<string\>\|null, non\-empty\-array\<string\> given\.$#'
149-
identifier: argument.type
150-
count: 1
151-
path: src/TestSuite/Migrator.php
152-
153-
-
154-
message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:truncateTables\(\) expects list\<string\>\|null, non\-empty\-array\<string\> given\.$#'
155-
identifier: argument.type
156-
count: 2
157-
path: src/TestSuite/Migrator.php
158-
159135
-
160136
message: '#^Offset 0 on non\-empty\-list\<string\> in isset\(\) always exists and is not nullable\.$#'
161137
identifier: isset.offset

0 commit comments

Comments
 (0)