Skip to content

Commit

Permalink
Ignore error about Connection::lastInsertId()
Browse files Browse the repository at this point in the history
The php docs are not very clear about that one.
  • Loading branch information
greg0ire committed May 27, 2020
1 parent 9f9629c commit 1bc66b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1bc66b3

Please sign in to comment.