Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jan 20, 2025
1 parent 627b43d commit 1d54c2c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ parameters:
paths:
- src
- tests
excludePaths:
- src/Events/Swow.php
ignoreErrors:
-
path: src/Events/Fiber.php
Expand All @@ -11,21 +13,6 @@ parameters:
- '#Call to static method getDriver\(\) on an unknown class Revolt\\EventLoop.#'
- '#Method Workerman\\Events\\Fiber::driver\(\) has invalid return type Revolt\\EventLoop\\Driver.#'
- '#Call to method .* on an unknown class Revolt\\EventLoop\\Driver.#'
-
path: src/Events/Swow.php
messages:
- '#Used function Swow\\Sync\\waitAll not found.#'
- '#Call to static method .* on an unknown class Swow\\.*.#'
- '#Function msleep not found.#'
- '#Function stream_poll_one not found.#'
- '#Caught class Swow\\SignalException not found.#'
- '#Function Swow\\Sync\\waitAll not found.#'
- '#Constant STREAM_POLLHUP not found.#'
- '#Constant STREAM_POLLIN not found.#'
- '#Constant STREAM_POLLNONE not found.#'
- '#Constant STREAM_POLLOUT not found.#'
- '#Property Workerman\\Events\\Swow::.* has unknown class Workerman\\Coroutine\\Coroutine\\Swow as its type.#'
- '#Call to static method .* on an unknown class Workerman\\Coroutine\\Coroutine\\Swow.#'
-
path: src/Events/Event.php
reportUnmatched: false
Expand Down

0 comments on commit 1d54c2c

Please sign in to comment.