phpstan.neon 918 B

123456789101112131415161718192021222324252627
  1. parameters:
  2. level: 6
  3. paths:
  4. - src
  5. - tests
  6. bootstrapFiles:
  7. - vendor/autoload.php
  8. excludePaths:
  9. - vendor
  10. treatPhpDocTypesAsCertain: false
  11. checkGenericClassInNonGenericObjectType: false
  12. ignoreErrors:
  13. - '#Unsafe usage of new static\(\).+#'
  14. - '#Method \S+ return type has no value type specified in iterable type array.#'
  15. - '#Method \S+ has parameter \S+ with no value type specified in iterable type array.#'
  16. - '#Property \S+ type has no value type specified in iterable type array.#'
  17. - '#Parameter \#\d+ \$\S+ of method Workerman\\[^:]+::[^\(]+\(\) expects [^,]+, \S+ given.#'
  18. - '#Access to an undefined property Workerman\\Connection\\TcpConnection::\$__request.#'
  19. -
  20. message: '#Method \S+ has no return typehint specified.#'
  21. paths:
  22. - tests/unit/**Test.php