phpstan.neon.dist 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. parameters:
  2. level: 5
  3. paths:
  4. - src
  5. - tests
  6. ignoreErrors:
  7. -
  8. path: src/Events/Revolt.php
  9. messages:
  10. - '#Property Workerman\\Events\\Revolt::\$driver has unknown class Revolt\\EventLoop\\Driver as its type.#'
  11. - '#Call to static method getDriver\(\) on an unknown class Revolt\\EventLoop.#'
  12. - '#Method Workerman\\Events\\Revolt::driver\(\) has invalid return type Revolt\\EventLoop\\Driver.#'
  13. - '#Call to method .* on an unknown class Revolt\\EventLoop\\Driver.#'
  14. -
  15. path: src/Events/Swow.php
  16. messages:
  17. - '#Used function Swow\\Sync\\waitAll not found.#'
  18. - '#Call to static method .* on an unknown class Swow\\.*.#'
  19. - '#Function msleep not found.#'
  20. - '#Function stream_poll_one not found.#'
  21. - '#Caught class Swow\\SignalException not found.#'
  22. - '#Function Swow\\Sync\\waitAll not found.#'
  23. - '#Constant STREAM_POLLHUP not found.#'
  24. - '#Constant STREAM_POLLIN not found.#'
  25. - '#Constant STREAM_POLLNONE not found.#'
  26. - '#Constant STREAM_POLLOUT not found.#'
  27. - '#Property Workerman\\Events\\Swow::.* has unknown class Swow\\Coroutine as its type.#'
  28. -
  29. path: src/Events/Event.php
  30. reportUnmatched: false
  31. messages:
  32. - '#Call to an undefined method EventBase::+.#'
  33. - path: src/Timer.php
  34. message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
  35. - path: src/Worker.php
  36. message: '#Constant LINE_VERSION_LENGTH not found.#'