psalm.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0"?>
  2. <psalm
  3. totallyTyped="false"
  4. errorLevel="5"
  5. resolveFromConfigFile="true"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xmlns="https://getpsalm.org/schema/config"
  8. xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
  9. >
  10. <projectFiles>
  11. <directory name="lib/Doctrine/DBAL" />
  12. <directory name="tests/Doctrine/Tests" />
  13. <ignoreFiles>
  14. <directory name="vendor" />
  15. </ignoreFiles>
  16. </projectFiles>
  17. <stubs>
  18. <file name="vendor/jetbrains/phpstorm-stubs/PDO/PDO.php" />
  19. <file name="vendor/jetbrains/phpstorm-stubs/ibm_db2/ibm_db2.php" />
  20. <file name="vendor/jetbrains/phpstorm-stubs/mysqli/mysqli.php" />
  21. <file name="vendor/jetbrains/phpstorm-stubs/oci8/oci8.php" />
  22. <file name="vendor/jetbrains/phpstorm-stubs/pgsql/pgsql.php" />
  23. <file name="vendor/jetbrains/phpstorm-stubs/sqlsrv/sqlsrv.php" />
  24. </stubs>
  25. <issueHandlers>
  26. <ConflictingReferenceConstraint>
  27. <errorLevel type="suppress">
  28. <!--
  29. This one is just too convoluted for Psalm to figure out, by
  30. its author's own admission
  31. -->
  32. <file name="lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php"/>
  33. </errorLevel>
  34. </ConflictingReferenceConstraint>
  35. <FalsableReturnStatement>
  36. <errorLevel type="suppress">
  37. <!--
  38. Fixing these issues requires an API change
  39. -->
  40. <file name="lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php"/>
  41. <file name="lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php"/>
  42. </errorLevel>
  43. </FalsableReturnStatement>
  44. <MethodSignatureMismatch>
  45. <errorLevel type="suppress">
  46. <!--
  47. This one is clearly deliberate; it's a hack to adapt \PDO to
  48. Doctrine\DBAL\Driver\Connection
  49. -->
  50. <file name="lib/Doctrine/DBAL/Driver/PDOConnection.php"/>
  51. </errorLevel>
  52. </MethodSignatureMismatch>
  53. <NullableReturnStatement>
  54. <errorLevel type="suppress">
  55. <!--
  56. Fixing this issue requires an API change
  57. -->
  58. <file name="lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php"/>
  59. </errorLevel>
  60. </NullableReturnStatement>
  61. <TooFewArguments>
  62. <errorLevel type="suppress">
  63. <!--
  64. Requires a release of
  65. https://github.com/JetBrains/phpstorm-stubs/pull/727
  66. -->
  67. <file name="lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php"/>
  68. </errorLevel>
  69. </TooFewArguments>
  70. <UndefinedConstant>
  71. <errorLevel type="suppress">
  72. <directory name="lib/Doctrine/DBAL/Driver/SQLAnywhere"/>
  73. <!--
  74. Requires a release of
  75. https://github.com/JetBrains/phpstorm-stubs/pull/732
  76. -->
  77. <file name="tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php" />
  78. </errorLevel>
  79. </UndefinedConstant>
  80. <UndefinedFunction>
  81. <errorLevel type="suppress">
  82. <directory name="lib/Doctrine/DBAL/Driver/SQLAnywhere"/>
  83. </errorLevel>
  84. </UndefinedFunction>
  85. <UndefinedClass>
  86. <errorLevel type="suppress">
  87. <!-- Contains references to optional dependencies -->
  88. <file name="lib/Doctrine/DBAL/Tools/Dumper.php"/>
  89. </errorLevel>
  90. </UndefinedClass>
  91. <InvalidReturnType>
  92. <errorLevel type="suppress">
  93. <!-- lastInsertId has a return type that does not match the one defined in the interface-->
  94. <file name="lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php"/>
  95. </errorLevel>
  96. </InvalidReturnType>
  97. <InvalidReturnStatement>
  98. <errorLevel type="suppress">
  99. <!-- lastInsertId has a return type that does not match the one defined in the interface-->
  100. <file name="lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php"/>
  101. </errorLevel>
  102. </InvalidReturnStatement>
  103. </issueHandlers>
  104. </psalm>