psalm.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <psalm
  3. totallyTyped="false"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xmlns="https://getpsalm.org/schema/config"
  6. xsi:schemaLocation="https://getpsalm.org/schema/config file:///composer/vendor/vimeo/psalm/config.xsd"
  7. >
  8. <projectFiles>
  9. <directory name="src" />
  10. <ignoreFiles>
  11. <directory name="vendor" />
  12. </ignoreFiles>
  13. </projectFiles>
  14. <issueHandlers>
  15. <RedundantConditionGivenDocblockType>
  16. <errorLevel type="info">
  17. <!-- Psalm is very strict and believe that because we documented a type, it is redundant to assert it -->
  18. <file name="src/DocBlock/StandardTagFactory.php"/>
  19. </errorLevel>
  20. </RedundantConditionGivenDocblockType>
  21. <PossiblyNullArrayOffset>
  22. <errorLevel type="info">
  23. <!-- Psalm forbid accessing an array with a null offset but it's still working code without notice -->
  24. <file name="src/DocBlock/StandardTagFactory.php"/>
  25. </errorLevel>
  26. </PossiblyNullArrayOffset>
  27. <DeprecatedInterface>
  28. <errorLevel type="info">
  29. <!-- Will be removed in 6.0.0 issues/211 -->
  30. <referencedClass name="phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod"/>
  31. </errorLevel>
  32. </DeprecatedInterface>
  33. <RedundantConditionGivenDocblockType>
  34. <errorLevel type="info">
  35. <!-- Psalm manage to infer a more precise type than PHPStan. notNull assert is needed for PHPStan but
  36. Psalm sees it as redundant -->
  37. <directory name="src/DocBlock/Tags/"/>
  38. </errorLevel>
  39. </RedundantConditionGivenDocblockType>
  40. </issueHandlers>
  41. </psalm>