phpstan.neon.dist 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # https://phpstan.org/config-reference
  2. parameters:
  3. level: 6
  4. treatPhpDocTypesAsCertain: false
  5. paths:
  6. - src
  7. # on ignore les erreurs qui proviennent d'un importe d'un attribut PhpStorm
  8. # on ignore les erreurs qui imposent d'indiquer le type d'un iterable dans la phpDoc (cf: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type)
  9. ignoreErrors :
  10. - '#Attribute class JetBrains\\PhpStorm\\[a-zA-Z]+ does not exist.#'
  11. - identifier: 'missingType.generics'
  12. - '#Property .+::\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
  13. ergebnis:
  14. # TODO: simplify by using allRules: false (https://github.com/ergebnis/phpstan-rules?tab=readme-ov-file#enabling-rules-one-by-one)
  15. final:
  16. enabled: false
  17. noExtends:
  18. enabled: false
  19. noNullableReturnTypeDeclaration:
  20. enabled: false
  21. noParameterWithNullableTypeDeclaration:
  22. enabled: false
  23. noParameterWithNullDefaultValue:
  24. enabled: false
  25. noCompact:
  26. enabled: false
  27. noIsset:
  28. enabled: false
  29. finalInAbstractClass:
  30. enabled: false
  31. noConstructorParameterWithDefaultValue:
  32. enabled: false
  33. noParameterWithContainerTypeDeclaration:
  34. enabled: false
  35. noSwitch:
  36. enabled: false
  37. privateInFinalClass:
  38. enabled: false