Skip to content

Commit de11651

Browse files
committed
Ignore missing drivers on old php
1 parent 7d9d2dc commit de11651

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ parameters:
5454
message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Connection and ''getNativeConnection'' will always evaluate to true\.$#' # needed for older DBAL versions
5555
paths:
5656
- src/Doctrine/Driver/DriverType.php
57+
58+
-
59+
messages: # needed for older DBAL versions
60+
- '#^Class PgSql\\Connection not found\.$#'
61+
- '#^Class Doctrine\\DBAL\\Driver\\PgSQL\\Driver not found\.$#'
62+
- '#^Class Doctrine\\DBAL\\Driver\\SQLite3\\Driver not found\.$#'

0 commit comments

Comments
 (0)