소스 검색

phpstan analyse level 1

Chance 2 년 전
부모
커밋
4106df5a3c
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      phpstan.neon

+ 8 - 2
phpstan.neon

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