123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?xml version="1.0"?>
- <psalm
- totallyTyped="false"
- errorLevel="5"
- resolveFromConfigFile="true"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="https://getpsalm.org/schema/config"
- xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
- >
- <projectFiles>
- <directory name="lib/Doctrine/DBAL" />
- <directory name="tests/Doctrine/Tests" />
- <ignoreFiles>
- <directory name="vendor" />
- </ignoreFiles>
- </projectFiles>
- <stubs>
- <file name="vendor/jetbrains/phpstorm-stubs/PDO/PDO.php" />
- <file name="vendor/jetbrains/phpstorm-stubs/ibm_db2/ibm_db2.php" />
- <file name="vendor/jetbrains/phpstorm-stubs/mysqli/mysqli.php" />
- <file name="vendor/jetbrains/phpstorm-stubs/oci8/oci8.php" />
- <file name="vendor/jetbrains/phpstorm-stubs/pgsql/pgsql.php" />
- <file name="vendor/jetbrains/phpstorm-stubs/sqlsrv/sqlsrv.php" />
- </stubs>
- <issueHandlers>
- <ConflictingReferenceConstraint>
- <errorLevel type="suppress">
- <!--
- This one is just too convoluted for Psalm to figure out, by
- its author's own admission
- -->
- <file name="lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php"/>
- </errorLevel>
- </ConflictingReferenceConstraint>
- <FalsableReturnStatement>
- <errorLevel type="suppress">
- <!--
- Fixing these issues requires an API change
- -->
- <file name="lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php"/>
- <file name="lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php"/>
- </errorLevel>
- </FalsableReturnStatement>
- <MethodSignatureMismatch>
- <errorLevel type="suppress">
- <!--
- This one is clearly deliberate; it's a hack to adapt \PDO to
- Doctrine\DBAL\Driver\Connection
- -->
- <file name="lib/Doctrine/DBAL/Driver/PDOConnection.php"/>
- </errorLevel>
- </MethodSignatureMismatch>
- <NullableReturnStatement>
- <errorLevel type="suppress">
- <!--
- Fixing this issue requires an API change
- -->
- <file name="lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php"/>
- </errorLevel>
- </NullableReturnStatement>
- <TooFewArguments>
- <errorLevel type="suppress">
- <!--
- Requires a release of
- https://github.com/JetBrains/phpstorm-stubs/pull/727
- -->
- <file name="lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php"/>
- </errorLevel>
- </TooFewArguments>
- <UndefinedConstant>
- <errorLevel type="suppress">
- <directory name="lib/Doctrine/DBAL/Driver/SQLAnywhere"/>
- <!--
- Requires a release of
- https://github.com/JetBrains/phpstorm-stubs/pull/732
- -->
- <file name="tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php" />
- </errorLevel>
- </UndefinedConstant>
- <UndefinedFunction>
- <errorLevel type="suppress">
- <directory name="lib/Doctrine/DBAL/Driver/SQLAnywhere"/>
- </errorLevel>
- </UndefinedFunction>
- <UndefinedClass>
- <errorLevel type="suppress">
- <!-- Contains references to optional dependencies -->
- <file name="lib/Doctrine/DBAL/Tools/Dumper.php"/>
- </errorLevel>
- </UndefinedClass>
- <InvalidReturnType>
- <errorLevel type="suppress">
- <!-- lastInsertId has a return type that does not match the one defined in the interface-->
- <file name="lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php"/>
- </errorLevel>
- </InvalidReturnType>
- <InvalidReturnStatement>
- <errorLevel type="suppress">
- <!-- lastInsertId has a return type that does not match the one defined in the interface-->
- <file name="lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php"/>
- </errorLevel>
- </InvalidReturnStatement>
- </issueHandlers>
- </psalm>
|