phpstan.neon 1.1 KB

12345678910111213141516171819202122232425
  1. parameters:
  2. level: 0
  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. -
  14. path: src/Events/Swow.php
  15. messages:
  16. - '#Used function Swow\\Sync\\waitAll not found.#'
  17. - '#Call to static method .* on an unknown class Swow\\.*.#'
  18. - '#Function msleep not found.#'
  19. - '#Function stream_poll_one not found.#'
  20. - '#Caught class Swow\\SignalException not found.#'
  21. - '#Function Swow\\Sync\\waitAll not found.#'
  22. - path: src/Timer.php
  23. message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
  24. - path: tests/Pest.php
  25. message: '#Undefined variable: \$this#'