-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
33 lines (33 loc) · 1.63 KB
/
phpstan.neon.dist
File metadata and controls
33 lines (33 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
parameters:
level: 5
paths:
- src
- tests
excludePaths:
- src/Events/Swow.php
ignoreErrors:
- path: src/Events/Fiber.php
messages:
- '#Property Workerman\\Events\\Fiber::\$driver has unknown class Revolt\\EventLoop\\Driver as its type.#'
- '#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/Event.php
reportUnmatched: false
messages:
- '#Call to an undefined method EventBase::+.#'
- path: src/Timer.php
message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
- path: src/Worker.php
reportUnmatched: false
messages:
- '#Constant LINE_VERSION_LENGTH not found.#'
- '#Call to static method create\(\) on an unknown class Workerman\\Coroutine\\Coroutine.#'
- identifier: throws.unusedType
message: "#RedisClusterException in PHPDoc @throws tag but it's not thrown.#"
reportUnmatched: false
# Mockery: shouldReceive() returns CompositeExpectation; once()/with() are delegated via __call().
- path: tests/Unit/Protocols/WebsocketTest.php
message: '#Call to an undefined method Mockery\\ExpectationInterface\|Mockery\\HigherOrderMessage::(once|with)\(\)#'
- path: tests/Unit/Protocols/WsTest.php
message: '#Call to an undefined method Mockery\\ExpectationInterface\|Mockery\\HigherOrderMessage::(once|with)\(\)#'