phpstan.neon.dist 1.5 KB

12345678910111213141516171819202122232425262728293031
  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. - path: src/Timer.php
  29. message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
  30. - path: src/Worker.php
  31. message: '#Constant LINE_VERSION_LENGTH not found.#'