From 1bc66b34a92c0f38d30397e5ade8e51c42a7dae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 27 May 2020 21:47:39 +0200 Subject: [PATCH] Ignore error about Connection::lastInsertId() The php docs are not very clear about that one. --- phpstan.neon.dist | 5 +++++ 1 file changed, 5 insertions(+) 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