Skip to content

Commit 5a3f837

Browse files
committed
fix stan for DBAL 2.x
1 parent 522aba5 commit 5a3f837

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ parameters:
3636
message: '~^(Call to an undefined method Doctrine\\DBAL\\Driver\\Connection::getWrappedConnection\(\)\.|Call to an undefined method Doctrine\\DBAL\\Connection::createSchemaManager\(\)\.|Call to an undefined static method Doctrine\\DBAL\\Exception::invalidPdoInstance\(\)\.|Call to method (getCreateTableSQL|getClobTypeDeclarationSQL|initializeCommentedDoctrineTypes)\(\) of deprecated class Doctrine\\DBAL\\Platforms\\\w+Platform:\n.+|Anonymous class extends deprecated class Doctrine\\DBAL\\Platforms\\(PostgreSQL94Platform|SQLServer2012Platform):\n.+|Call to deprecated method fetch(|All)\(\) of class Doctrine\\DBAL\\Result:\n.+|Call to deprecated method getSchemaManager\(\) of class Doctrine\\DBAL\\Connection:\n.+|Access to an undefined property Doctrine\\DBAL\\Driver\\PDO\\Connection::\$connection\.|Parameter #1 \$dsn of class Doctrine\\DBAL\\Driver\\PDO\\SQLSrv\\Connection constructor expects string, Doctrine\\DBAL\\Driver\\PDO\\Connection given\.|Method Atk4\\Data\\Persistence\\Sql\\Expression::execute\(\) should return Doctrine\\DBAL\\Result\|PDOStatement but returns bool\.|PHPDoc tag @return contains generic type Doctrine\\DBAL\\Schema\\AbstractSchemaManager<Doctrine\\DBAL\\Platforms\\AbstractPlatform> but class Doctrine\\DBAL\\Schema\\AbstractSchemaManager is not generic\.|Class Doctrine\\DBAL\\Platforms\\(MySqlPlatform|PostgreSqlPlatform) referenced with incorrect case: Doctrine\\DBAL\\Platforms\\(MySQLPlatform|PostgreSQLPlatform)\.)$~'
3737
path: '*'
3838
# count for DBAL 3.x matched in "src/Persistence/GenericPlatform.php" file
39-
count: 39
39+
count: 40
4040

4141
# TODO these rules are generated, this ignores should be fixed in the code
4242
# for src/Schema/TestCase.php

src/Persistence/GenericPlatform.php

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ private function createNotSupportedException(): \Exception
4747
$connection->getSchemaManager();
4848
$connection->getSchemaManager();
4949
$connection->getSchemaManager();
50+
$connection->getSchemaManager();
5051
}
5152
}
5253

0 commit comments

Comments
 (0)