phpstan.neon 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. parameters:
  2. customRulesetUsed: true
  3. level: 0
  4. fileExtensions:
  5. - php
  6. paths:
  7. - htdocs
  8. - scripts
  9. excludePaths:
  10. analyseAndScan:
  11. - htdocs/custom
  12. - htdocs/dev/*
  13. - htdocs/doc/*
  14. - htdocs/documents/*
  15. - htdocs/install/doctemplates/*
  16. - htdocs/langs/*
  17. - htdocs/modulebuilder/template/test/*
  18. - htdocs/support/*
  19. - htdocs/test/*
  20. analyse:
  21. - htdocs/includes/*
  22. checkAlwaysTrueCheckTypeFunctionCall: false
  23. checkAlwaysTrueInstanceof: false
  24. checkAlwaysTrueStrictComparison: false
  25. checkClassCaseSensitivity: false
  26. checkFunctionArgumentTypes: false
  27. checkFunctionNameCase: false
  28. checkArgumentsPassedByReference: false
  29. checkMaybeUndefinedVariables: false
  30. checkNullables: false
  31. checkThisOnly: true
  32. checkUnionTypes: false
  33. checkExplicitMixedMissingReturn: false
  34. checkPhpDocMissingReturn: false
  35. reportMaybes: false
  36. reportMaybesInMethodSignatures: false
  37. reportStaticMethodSignatures: false
  38. polluteScopeWithLoopInitialAssignments: true
  39. polluteScopeWithAlwaysIterableForeach: true
  40. reportMagicMethods: false
  41. reportMagicProperties: false
  42. ignoreErrors:
  43. - '#Undefined variable: \$langs#'
  44. - '#Undefined variable: \$user#'
  45. - '#Undefined variable: \$db#'
  46. - '#Undefined variable: \$conf#'
  47. - '#Undefined variable: \$hookmanager#'
  48. - '#Undefined variable: \$mysoc#'
  49. - '#Undefined variable: \$error#'
  50. - '#Undefined variable: \$errors#'
  51. - '#Undefined variable: \$form#'
  52. - '#Result of function fieldList#'
  53. - '#Caught class Stripe#'
  54. - '#Function llxHeader invoked with#'
  55. - '#Function llxHeaderVierge invoked with#'
  56. - '#If condition is always true#'
  57. - '#always exists and is not falsy#'
  58. - '#has no return type specified#'
  59. - '#is always true#'
  60. - '#is always fal#'
  61. - '#always exists and is not nullable#'
  62. - '#PHPDoc tag @return has invalid value#'
  63. - '#type has no value type specified in iterable type array#'
  64. - '#with no value type specified in iterable type array#'
  65. - '#Empty array passed to foreach#'
  66. - '#in isset\(\) is not nullable#'
  67. internalErrorsCountLimit: 50
  68. cache:
  69. nodesByFileCountMax: 512
  70. nodesByStringCountMax: 512
  71. reportUnmatchedIgnoredErrors: false
  72. universalObjectCratesClasses:
  73. - stdClass
  74. - SimpleXMLElement
  75. earlyTerminatingMethodCalls: []
  76. dynamicConstantNames:
  77. - ICONV_IMPL
  78. - PHP_VERSION
  79. - PHP_MAJOR_VERSION
  80. - PHP_MINOR_VERSION
  81. - PHP_RELEASE_VERSION
  82. - PHP_VERSION_ID
  83. - PHP_EXTRA_VERSION
  84. - PHP_ZTS
  85. - PHP_DEBUG
  86. - PHP_MAXPATHLEN
  87. - PHP_OS
  88. - PHP_OS_FAMILY
  89. - PHP_SAPI
  90. - PHP_EOL
  91. - PHP_INT_MAX
  92. - PHP_INT_MIN
  93. - PHP_INT_SIZE
  94. - PHP_FLOAT_DIG
  95. - PHP_FLOAT_EPSILON
  96. - PHP_FLOAT_MIN
  97. - PHP_FLOAT_MAX
  98. - DEFAULT_INCLUDE_PATH
  99. - PEAR_INSTALL_DIR
  100. - PEAR_EXTENSION_DIR
  101. - PHP_EXTENSION_DIR
  102. - PHP_PREFIX
  103. - PHP_BINDIR
  104. - PHP_BINARY
  105. - PHP_MANDIR
  106. - PHP_LIBDIR
  107. - PHP_DATADIR
  108. - PHP_SYSCONFDIR
  109. - PHP_LOCALSTATEDIR
  110. - PHP_CONFIG_FILE_PATH
  111. - PHP_CONFIG_FILE_SCAN_DIR
  112. - PHP_SHLIB_SUFFIX
  113. - PHP_FD_SETSIZE