浏览代码

phpstan analyse level 1

Chance 2 年之前
父节点
当前提交
4106df5a3c
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      phpstan.neon

+ 8 - 2
phpstan.neon

@@ -1,5 +1,5 @@
 parameters:
-	level: 0
+	level: 1
 	paths:
 		- src
 		- tests
@@ -19,7 +19,13 @@ parameters:
 	            - '#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.#'
 	    - path: src/Timer.php
 	      message: '#Call to static method getSuspension\(\) on an unknown class Revolt\\EventLoop.#'
 	    - path: tests/Pest.php
-	      message: '#Undefined variable: \$this#'
+	      message: '#Undefined variable: \$this#'
+	    - path: src/Worker.php
+	      message: '#Constant LINE_VERSION_LENGTH not found.#'