psalm.xml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <psalm
  3. autoloader="psalm-autoload.php"
  4. useDocblockTypes="true"
  5. totallyTyped="true"
  6. >
  7. <projectFiles>
  8. <directory name="lib" />
  9. </projectFiles>
  10. <issueHandlers>
  11. <RedundantConditionGivenDocblockType errorLevel="info" />
  12. <!-- We have to be explicit because PHP 5 lacks scalar types -->
  13. <UnresolvableInclude errorLevel="info" />
  14. <!-- Because we put the variants into their own subdirectory -->
  15. <DuplicateClass errorLevel="info" />
  16. <!-- Later versions of Psalm are only PHP 7 compatible, which
  17. sees our redefinition of Error and TypeError as duplicate
  18. class errors. -->
  19. <UndefinedConstant errorLevel="info" />
  20. <!-- The Mcrypt constants aren't defined in PHP 7.2 -->
  21. <MissingReturnType errorLevel="info" />
  22. <!-- False positive with some versions of (Psalm, PHP) -->
  23. <InvalidReturnType errorLevel="info" />
  24. <!-- The "last resort" function in lib/random.php -->
  25. <MixedInferredReturnType errorLevel="suppress" />
  26. <!-- Only used in totallyTyped mode -->
  27. </issueHandlers>
  28. </psalm>