diff --git a/.gitignore b/.gitignore index aeaf4403b..43be19c15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store bin */**/phpstan.neon +*/**/phpstan-baseline.neon .php_cs.dist # ignore editor config **/*.editorconfig @@ -34,6 +35,7 @@ bin */*/psalm.xml */*/psalm.xml.license */*/psalm.baseline.xml +*/*/psalm-baseline.xml */*/phpcs.xml */*/phpcs.xml.dist */*/.php-cs-fixer.php diff --git a/doctrine/dbal/phpstan-baseline.neon b/doctrine/dbal/phpstan-baseline.neon deleted file mode 100644 index 7bb0252a5..000000000 --- a/doctrine/dbal/phpstan-baseline.neon +++ /dev/null @@ -1,829 +0,0 @@ -parameters: - ignoreErrors: - - - message: '#^@readonly property cannot have a default value\.$#' - identifier: property.readOnlyByPhpDocDefaultValue - count: 1 - path: src/Driver/AbstractException.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\OCI8\\Result\:\:fetchAllAssociative\(\) should return list\\> but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Driver/OCI8/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\OCI8\\Result\:\:fetchAllNumeric\(\) should return list\\> but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Driver/OCI8/Result.php - - - - message: '#^@readonly property Doctrine\\DBAL\\Driver\\PDO\\PDOException\:\:\$sqlState is assigned outside of the constructor\.$#' - identifier: property.readOnlyByPhpDocAssignNotInConstructor - count: 1 - path: src/Driver/PDO/PDOException.php - - - - message: '#^@readonly property cannot have a default value\.$#' - identifier: property.readOnlyByPhpDocDefaultValue - count: 1 - path: src/Driver/PDO/PDOException.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\PDO\\Result\:\:fetchAll\(\) should return list\ but returns array\.$#' - identifier: return.type - count: 1 - path: src/Driver/PDO/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\PgSQL\\Result\:\:fetchAllAssociative\(\) should return list\\> but returns array\\>\.$#' - identifier: return.type - count: 1 - path: src/Driver/PgSQL/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\PgSQL\\Result\:\:fetchAllNumeric\(\) should return list\\> but returns array\\>\.$#' - identifier: return.type - count: 1 - path: src/Driver/PgSQL/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\PgSQL\\Result\:\:fetchFirstColumn\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Driver/PgSQL/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Driver\\SQLite3\\Result\:\:fetchNumeric\(\) should return list\\|false but returns array\|false\.$#' - identifier: return.type - count: 1 - path: src/Driver/SQLite3/Result.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\AbstractMySQLPlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/AbstractMySQLPlatform.php - - - - message: '#^Parameter \#1 \$assets of method Doctrine\\DBAL\\Platforms\\AbstractMySQLPlatform\:\:indexAssetsByLowerCaseName\(\) expects list\, array\ given\.$#' - identifier: argument.type - count: 1 - path: src/Platforms/AbstractMySQLPlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:buildCreateTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 2 - path: src/Platforms/AbstractPlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\DB2Platform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/DB2Platform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\OraclePlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/OraclePlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/PostgreSQLPlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\SQLServerPlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 2 - path: src/Platforms/SQLServerPlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\SqlitePlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/SqlitePlatform.php - - - - message: '#^Method Doctrine\\DBAL\\Platforms\\SqlitePlatform\:\:getAlterTableSQL\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Platforms/SqlitePlatform.php - - - - message: '#^Parameter &\$knownAliases by\-ref type of method Doctrine\\DBAL\\Query\\QueryBuilder\:\:getSQLForJoins\(\) expects array\, non\-empty\-array\ given\.$#' - identifier: parameterByRef.type - count: 1 - path: src/Query/QueryBuilder.php - - - - message: '#^Property Doctrine\\DBAL\\Query\\QueryBuilder\:\:\$params \(array\\|string, mixed\>\) does not accept non\-empty\-array\\.$#' - identifier: assign.propertyType - count: 1 - path: src/Query/QueryBuilder.php - - - - message: '#^Parameter \#1 \$sequences of method Doctrine\\DBAL\\SQL\\Builder\\DropSchemaObjectsSQLBuilder\:\:buildSequenceStatements\(\) expects list\, array\ given\.$#' - identifier: argument.type - count: 1 - path: src/SQL/Builder/DropSchemaObjectsSQLBuilder.php - - - - message: '#^Parameter \#1 \$tables of method Doctrine\\DBAL\\SQL\\Builder\\DropSchemaObjectsSQLBuilder\:\:buildTableStatements\(\) expects list\, array\ given\.$#' - identifier: argument.type - count: 1 - path: src/SQL/Builder/DropSchemaObjectsSQLBuilder.php - - - - message: '#^Method Doctrine\\DBAL\\Schema\\AbstractSchemaManager\:\:doListTableNames\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Schema/AbstractSchemaManager.php - - - - message: '#^Template type T is declared as covariant, but occurs in invariant position in property Doctrine\\DBAL\\Schema\\AbstractSchemaManager\:\:\$_platform\.$#' - identifier: generics.variance - count: 1 - path: src/Schema/AbstractSchemaManager.php - - - - message: '#^Parameter \#1 \$tables of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getDropTablesSQL\(\) expects list\, array\ given\.$#' - identifier: argument.type - count: 1 - path: src/Schema/SchemaDiff.php - - - - message: '#^Method Doctrine\\DBAL\\Schema\\SqliteSchemaManager\:\:addDetailsToTableForeignKeyColumns\(\) should return list\\> but returns array\, array\\>\.$#' - identifier: return.type - count: 1 - path: src/Schema/SqliteSchemaManager.php - - - - message: '#^Method Doctrine\\DBAL\\Schema\\TableDiff\:\:getAddedForeignKeys\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Schema/TableDiff.php - - - - message: '#^Method Doctrine\\DBAL\\Schema\\TableDiff\:\:getDroppedForeignKeys\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Schema/TableDiff.php - - - - message: '#^Method Doctrine\\DBAL\\Schema\\TableDiff\:\:getModifiedForeignKeys\(\) should return list\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Schema/TableDiff.php - - - - message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringNotContainsString\(\) expects string, array\\|string given\.$#' - identifier: argument.type - count: 1 - path: tests/Cache/QueryCacheProfileTest.php - - - - message: '#^Parameter \#1 \$cache of method Doctrine\\DBAL\\Tests\\Connection\\CachedQueryTest\:\:assertCachedQueryIsExecutedOnceAndYieldsTheSameResult\(\) expects Doctrine\\Common\\Cache\\Cache\|Psr\\Cache\\CacheItemPoolInterface, Doctrine\\Common\\Cache\\ArrayCache given\.$#' - identifier: argument.type - count: 1 - path: tests/Connection/CachedQueryTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:equalTo\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Connection/LoggingTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\TestCase\:\:once\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Connection/LoggingTest.php - - - - message: '#^Dead catch \- RuntimeException is never thrown in the try block\.$#' - identifier: catch.neverThrown - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Parameter \#1 \$params of class Doctrine\\DBAL\\Connection constructor expects array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}, array\{driver\: ''pdo_mysql'', host\: ''localhost'', user\: ''root'', password\: ''password'', port\: 1234, platform\: stdClass\} given\.$#' - identifier: argument.type - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Return type \(void\) of method Doctrine\\DBAL\\Connection@anonymous/tests/ConnectionTest\.php\:1079\:\:rollBack\(\) should be compatible with return type \(bool\) of method Doctrine\\DBAL\\Connection\:\:rollBack\(\)$#' - identifier: method.childReturnType - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Return type \(void\) of method Doctrine\\DBAL\\Connection@anonymous/tests/ConnectionTest\.php\:1103\:\:commit\(\) should be compatible with return type \(bool\) of method Doctrine\\DBAL\\Connection\:\:commit\(\)$#' - identifier: method.childReturnType - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Return type \(void\) of method Doctrine\\DBAL\\Connection@anonymous/tests/ConnectionTest\.php\:1103\:\:rollBack\(\) should be compatible with return type \(bool\) of method Doctrine\\DBAL\\Connection\:\:rollBack\(\)$#' - identifier: method.childReturnType - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: tests/ConnectionTest.php - - - - message: '#^Call to an undefined method Doctrine\\DBAL\\Driver\:\:createDatabasePlatformForVersion\(\)\.$#' - identifier: method.notFound - count: 1 - path: tests/Driver/AbstractDriverTestCase.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Driver/IBMDB2/DataSourceNameTest.php - - - - message: '#^Parameter \#1 \$params of method Doctrine\\DBAL\\Driver\\Mysqli\\Driver\:\:connect\(\) expects array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}, array\{persistent\: ''true''\} given\.$#' - identifier: argument.type - count: 1 - path: tests/Driver/Mysqli/ConnectionTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Driver/PDO/PgSQL/DriverTest.php - - - - message: '#^Offset string might not exist on array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}\.$#' - identifier: offsetAccess.notFound - count: 2 - path: tests/DriverManagerTest.php - - - - message: '#^Parameter \#1 \$params of static method Doctrine\\DBAL\\DriverManager\:\:getConnection\(\) expects array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}, array\{driver\: ''invalid_driver''\} given\.$#' - identifier: argument.type - count: 1 - path: tests/DriverManagerTest.php - - - - message: '#^Parameter \#1 \$params of static method Doctrine\\DBAL\\DriverManager\:\:getConnection\(\) expects array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}, array\{driver\: ''pdo_sqlite'', memory\: true, wrapperClass\: ''stdClass''\} given\.$#' - identifier: argument.type - count: 1 - path: tests/DriverManagerTest.php - - - - message: '#^Parameter \#1 \$params of static method Doctrine\\DBAL\\DriverManager\:\:getConnection\(\) expects array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}, array\{driverClass\: ''stdClass''\} given\.$#' - identifier: argument.type - count: 1 - path: tests/DriverManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Connection/ConnectionLostTest.php - - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: tests/Functional/ConnectionTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertNull\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Driver/DBAL6024Test.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/Driver/DBAL6044Test.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertFalse\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Driver/DBAL6044Test.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Driver/DBAL6044Test.php - - - - message: '#^Cannot access property \$affected_rows on mysqli_stmt\|false\.$#' - identifier: property.nonObject - count: 1 - path: tests/Functional/Driver/Mysqli/ResultTest.php - - - - message: '#^Cannot call method execute\(\) on mysqli_stmt\|false\.$#' - identifier: method.nonObject - count: 2 - path: tests/Functional/Driver/Mysqli/ResultTest.php - - - - message: '#^Parameter \#1 \$statement of class Doctrine\\DBAL\\Driver\\Mysqli\\Result constructor expects mysqli_stmt, mysqli_stmt\|false given\.$#' - identifier: argument.type - count: 2 - path: tests/Functional/Driver/Mysqli/ResultTest.php - - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: tests/Functional/Driver/Mysqli/ResultTest.php - - - - message: '#^Call to sprintf contains 0 placeholders, 1 value given\.$#' - identifier: argument.sprintf - count: 2 - path: tests/Functional/Driver/OCI8/ResultTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Driver/OCI8/ResultTest.php - - - - message: '#^Cannot access offset ''name'' on array\{name\: string, passwd\: string, uid\: int, gid\: int, gecos\: string, dir\: string, shell\: string\}\|false\.$#' - identifier: offsetAccess.nonOffsetAccessible - count: 1 - path: tests/Functional/ExceptionTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/LegacyAPITest.php - - - - message: '#^Parameter \#1 \$mode of method Doctrine\\DBAL\\Result\:\:fetch\(\) expects 2\|3\|7, 1 given\.$#' - identifier: argument.type - count: 1 - path: tests/Functional/LegacyAPITest.php - - - - message: '#^Parameter \#1 \$mode of method Doctrine\\DBAL\\Result\:\:fetchAll\(\) expects 2\|3\|7, 1 given\.$#' - identifier: argument.type - count: 1 - path: tests/Functional/LegacyAPITest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/ModifyLimitQueryTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/Platform/PlatformRestrictionsTest.php - - - - message: '#^Offset ''replica'' might not exist on array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\, default_dbname\?\: string, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\, driverOptions\?\: array\, \.\.\.\}\.$#' - identifier: offsetAccess.notFound - count: 1 - path: tests/Functional/PrimaryReadReplicaConnectionTest.php - - - - message: '#^Instanceof between Doctrine\\DBAL\\Platforms\\MariaDBPlatform and Doctrine\\DBAL\\Platforms\\MariaDb1010Platform will always evaluate to false\.$#' - identifier: instanceof.alwaysFalse - count: 1 - path: tests/Functional/Query/QueryBuilderTest.php - - - - message: '#^PHPDoc tag @param for parameter \$expectedDefault with type mixed is not subtype of native type string\|null\.$#' - identifier: parameter.phpDocType - count: 2 - path: tests/Functional/Schema/DefaultValueTest.php - - - - message: '#^Only numeric types are allowed in \+, int\|null given on the left side\.$#' - identifier: plus.leftNonNumeric - count: 1 - path: tests/Functional/Schema/MySQL/ComparatorTest.php - - - - message: '#^Call to function array_filter\(\) requires parameter \#2 to be passed to avoid loose comparison semantics\.$#' - identifier: arrayFilter.strict - count: 1 - path: tests/Functional/Schema/MySQL/JsonCollationTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 3 - path: tests/Functional/Schema/MySQL/JsonCollationTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Schema/PostgreSQL/SchemaTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertNotFalse\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/Schema/PostgreSQL/SchemaTest.php - - - - message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true and mixed will always evaluate to true\.$#' - identifier: staticMethod.alreadyNarrowedType - count: 2 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Cannot call method getForeignTableName\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|null\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertCount\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 4 - path: tests/Functional/Schema/PostgreSQLSchemaManagerTest.php - - - - message: '#^Cannot call method getColumns\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SQLServerSchemaManagerTest.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\AbstractAsset\:\:getName\(\) with incorrect case\: getname$#' - identifier: method.nameCase - count: 6 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getDefault\(\) with incorrect case\: getdefault$#' - identifier: method.nameCase - count: 6 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getFixed\(\) with incorrect case\: getfixed$#' - identifier: method.nameCase - count: 3 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getLength\(\) with incorrect case\: getlength$#' - identifier: method.nameCase - count: 2 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getNotnull\(\) with incorrect case\: getnotnull$#' - identifier: method.nameCase - count: 6 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getPrecision\(\) with incorrect case\: getprecision$#' - identifier: method.nameCase - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getScale\(\) with incorrect case\: getscale$#' - identifier: method.nameCase - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getType\(\) with incorrect case\: gettype$#' - identifier: method.nameCase - count: 6 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Call to method Doctrine\\DBAL\\Schema\\Column\:\:getUnsigned\(\) with incorrect case\: getunsigned$#' - identifier: method.nameCase - count: 2 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method getColumns\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|false\.$#' - identifier: method.nonObject - count: 2 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method getForeignColumns\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method getForeignTableName\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method getName\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method isUnique\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SchemaManagerFunctionalTestCase.php - - - - message: '#^Cannot call method getForeignColumns\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|null\.$#' - identifier: method.nonObject - count: 5 - path: tests/Functional/Schema/SqliteSchemaManagerTest.php - - - - message: '#^Cannot call method getForeignTableName\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|null\.$#' - identifier: method.nonObject - count: 1 - path: tests/Functional/Schema/SqliteSchemaManagerTest.php - - - - message: '#^Cannot call method getLocalColumns\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|null\.$#' - identifier: method.nonObject - count: 5 - path: tests/Functional/Schema/SqliteSchemaManagerTest.php - - - - message: '#^Cannot call method getName\(\) on Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|null\.$#' - identifier: method.nonObject - count: 4 - path: tests/Functional/Schema/SqliteSchemaManagerTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Functional/StatementTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Functional/TransactionTest.php - - - - message: '#^Method Doctrine\\DBAL\\Tests\\Functional\\Types\\JsonTest\:\:insert\(\) has parameter \$value with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/Functional/Types/JsonTest.php - - - - message: '#^Method Doctrine\\DBAL\\Tests\\Functional\\Types\\JsonTest\:\:select\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/Functional/Types/JsonTest.php - - - - message: '#^Method PHPUnit\\Framework\\MockObject\\Builder\\InvocationMocker\:\:with\(\) invoked with unpacked array with possibly string key, but it''s not allowed because of @no\-named\-arguments\.$#' - identifier: argument.named - count: 1 - path: tests/Logging/LoggerChainTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertStringEndsNotWith\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#1 \$value1 of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getBitAndComparisonExpression\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#1 \$value1 of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getBitOrComparisonExpression\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#1 \$value1 of method Doctrine\\DBAL\\Tests\\Platforms\\AbstractPlatformTestCase\\:\:getBitAndComparisonExpressionSql\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#1 \$value1 of method Doctrine\\DBAL\\Tests\\Platforms\\AbstractPlatformTestCase\\:\:getBitOrComparisonExpressionSql\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$limit of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:modifyLimitQuery\(\) expects int\|null, string given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$lockMode of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:appendLockHint\(\) expects 0\|1\|2\|4, 128 given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$value2 of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getBitAndComparisonExpression\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$value2 of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getBitOrComparisonExpression\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$value2 of method Doctrine\\DBAL\\Tests\\Platforms\\AbstractPlatformTestCase\\:\:getBitAndComparisonExpressionSql\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#2 \$value2 of method Doctrine\\DBAL\\Tests\\Platforms\\AbstractPlatformTestCase\\:\:getBitOrComparisonExpressionSql\(\) expects string, int given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Parameter \#3 \$offset of method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:modifyLimitQuery\(\) expects int, string given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/AbstractPlatformTestCase.php - - - - message: '#^Cannot access offset ''boolean'' on iterable\.$#' - identifier: offsetAccess.nonOffsetAccessible - count: 1 - path: tests/Platforms/DB2PlatformTest.php - - - - message: '#^Method Doctrine\\DBAL\\Tests\\Platforms\\DB2PlatformTest\:\:getIsCommentedDoctrineType\(\) should return array\ but returns array\\|\(ArrayAccess&iterable\)\.$#' - identifier: return.type - count: 1 - path: tests/Platforms/DB2PlatformTest.php - - - - message: '#^Parameter \#3 \$message of static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\) expects string, true given\.$#' - identifier: argument.type - count: 1 - path: tests/Platforms/DB2PlatformTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Platforms/MySQL/MariaDbJsonComparatorTest.php - - - - message: '#^Dynamic call to static method Doctrine\\DBAL\\Platforms\\OraclePlatform\:\:assertValidIdentifier\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 2 - path: tests/Platforms/OraclePlatformTest.php - - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: tests/Platforms/PostgreSQLPlatformTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:markTestSkipped\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Platforms/SqlitePlatformTest.php - - - - message: '#^PHPDoc tag @return contains unresolvable type\.$#' - identifier: return.unresolvableType - count: 1 - path: tests/Portability/StatementTest.php - - - - message: '#^Return type of call to method PHPUnit\\Framework\\MockObject\\MockBuilder\\:\:getMock\(\) contains unresolvable type\.$#' - identifier: method.unresolvableReturnType - count: 1 - path: tests/Portability/StatementTest.php - - - - message: '#^Parameter \#2 \$y of method Doctrine\\DBAL\\Query\\Expression\\ExpressionBuilder\:\:in\(\) expects array\\|string, array\ given\.$#' - identifier: argument.type - count: 1 - path: tests/Query/Expression/ExpressionBuilderTest.php - - - - message: '#^Parameter \#2 \$y of method Doctrine\\DBAL\\Query\\Expression\\ExpressionBuilder\:\:notIn\(\) expects array\\|string, array\ given\.$#' - identifier: argument.type - count: 1 - path: tests/Query/Expression/ExpressionBuilderTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\TestCase\:\:any\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Query/QueryBuilderTest.php - - - - message: '#^Parameter \#1 \$precision of method Doctrine\\DBAL\\Schema\\Column\:\:setPrecision\(\) expects int, null given\.$#' - identifier: argument.type - count: 1 - path: tests/Schema/AbstractComparatorTestCase.php - - - - message: '#^Static call to instance method Doctrine\\DBAL\\Schema\\Comparator\:\:compareSchemas\(\)\.$#' - identifier: method.staticCall - count: 1 - path: tests/Schema/AbstractComparatorTestCase.php - - - - message: '#^Cannot call method getName\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Schema/SchemaTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\TestCase\:\:exactly\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 3 - path: tests/Schema/SchemaTest.php - - - - message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects object\|string, Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|false given\.$#' - identifier: argument.type - count: 1 - path: tests/Schema/SchemaTest.php - - - - message: '#^Parameter \#1 \$object of method ReflectionProperty\:\:getValue\(\) expects object\|null, Doctrine\\DBAL\\Schema\\ForeignKeyConstraint\|false given\.$#' - identifier: argument.type - count: 1 - path: tests/Schema/SchemaTest.php - - - - message: '#^Cannot call method getColumns\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 1 - path: tests/Schema/TableTest.php - - - - message: '#^Cannot call method getName\(\) on Doctrine\\DBAL\\Schema\\Index\|false\.$#' - identifier: method.nonObject - count: 2 - path: tests/Schema/TableTest.php - - - - message: '#^Dynamic call to static method PHPUnit\\Framework\\TestCase\:\:any\(\)\.$#' - identifier: staticMethod.dynamicCall - count: 1 - path: tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php