diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index f5dae26c..362adcc8 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6,24 +6,6 @@ parameters: count: 1 path: src/Command/BakeMigrationCommand.php - - - message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parseFields\(\) expects array\, array\\|int\<1, max\>, list\\|string\> given\.$#' - identifier: argument.type - count: 1 - path: src/Command/BakeMigrationCommand.php - - - - message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parseIndexes\(\) expects array\, array\\|int\<1, max\>, list\\|string\> given\.$#' - identifier: argument.type - count: 1 - path: src/Command/BakeMigrationCommand.php - - - - message: '#^Parameter \#1 \$arguments of method Migrations\\Util\\ColumnParser\:\:parsePrimaryKey\(\) expects array\, array\\|int\<1, max\>, list\\|string\> given\.$#' - identifier: argument.type - count: 1 - path: src/Command/BakeMigrationCommand.php - - message: '#^Call to an undefined method object\:\:loadHelper\(\)\.$#' identifier: method.notFound @@ -60,6 +42,18 @@ parameters: 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 @@ -115,10 +109,10 @@ parameters: path: src/Db/Adapter/SqlserverAdapter.php - - message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:verbose\(\) expects list\\|string, array\ given\.$#' - identifier: argument.type + message: '#^Call to function method_exists\(\) with Migrations\\MigrationInterface and ''useTransactions'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 - path: src/Migration/Manager.php + path: src/Migration/Environment.php - message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, array given\.$#' @@ -138,24 +132,6 @@ parameters: count: 1 path: src/Shim/OutputAdapter.php - - - message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:out\(\) expects list\\|string, array\|string given\.$#' - identifier: argument.type - count: 2 - path: src/Shim/OutputAdapter.php - - - - message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:dropTables\(\) expects list\\|null, non\-empty\-array\ given\.$#' - identifier: argument.type - count: 1 - path: src/TestSuite/Migrator.php - - - - message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:truncateTables\(\) expects list\\|null, non\-empty\-array\ given\.$#' - identifier: argument.type - count: 2 - path: src/TestSuite/Migrator.php - - message: '#^Offset 0 on non\-empty\-list\ in isset\(\) always exists and is not nullable\.$#' identifier: isset.offset