phpstan.neon.dist 1.0 KB

1234567891011121314151617181920212223242526
  1. parameters:
  2. level: 5
  3. paths:
  4. - src
  5. - tests
  6. excludePaths:
  7. - src/Events/Swow.php
  8. ignoreErrors:
  9. -
  10. path: src/Events/Fiber.php
  11. messages:
  12. - '#Property Workerman\\Events\\Fiber::\$driver has unknown class Revolt\\EventLoop\\Driver as its type.#'
  13. - '#Call to static method getDriver\(\) on an unknown class Revolt\\EventLoop.#'
  14. - '#Method Workerman\\Events\\Fiber::driver\(\) has invalid return type Revolt\\EventLoop\\Driver.#'
  15. - '#Call to method .* on an unknown class Revolt\\EventLoop\\Driver.#'
  16. -
  17. path: src/Events/Event.php
  18. reportUnmatched: false
  19. messages:
  20. - '#Call to an undefined method EventBase::+.#'
  21. - path: src/Timer.php
  22. message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
  23. - path: src/Worker.php
  24. messages:
  25. - '#Constant LINE_VERSION_LENGTH not found.#'
  26. - '#Call to static method run\(\) on an unknown class Swow\\Coroutine.#'