diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 40bc84910a1..88ad9e321d2 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -90,3 +90,8 @@ parameters: paths: - %currentWorkingDirectory%/lib/Doctrine/DBAL/Id/TableGenerator.php - %currentWorkingDirectory%/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php + + - + message: '~Method Doctrine\\DBAL\\Driver\\PDOSqlsrv\\Connection\:\:lastInsertId\(\) should return string but returns string\|false\|null\.~' + paths: + - %currentWorkingDirectory%/lib/Doctrine/DBAL/Driver/PDOSqlsrv/Connection.php