Skip to content

Commit 535249e

Browse files
committed
added phpstan config
1 parent 099a22d commit 535249e

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
22
/vendor/
33
/composer.lock
4+
/phpstan.neon

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"php": ">=7.2",
88
"ext-pthreads": "~3.2.0"
99
},
10+
"require-dev": {
11+
"phpstan/phpstan": "^0.12.8"
12+
},
1013
"autoload": {
1114
"classmap": ["./src"]
1215
}

phpstan.neon.dist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
parameters:
2+
level: 5
3+
paths:
4+
- src
5+
ignoreErrors:
6+
-
7+
#pthreads array-access magic
8+
message: "#^Cannot access an offset on iterable\\<ThreadedLoggerAttachment\\>&Volatile\\.$#"
9+
count: 1
10+
path: src/AttachableThreadedLogger.php
11+
12+
-
13+
#pthreads array-access magic
14+
message: "#^Cannot access offset mixed on iterable\\<ThreadedLoggerAttachment\\>&Volatile\\.$#"
15+
count: 2
16+
path: src/AttachableThreadedLogger.php
17+
18+
-
19+
#pthreads array-access magic
20+
message: "#^Cannot unset offset mixed on iterable\\<ThreadedLoggerAttachment\\>&Volatile\\.$#"
21+
count: 2
22+
path: src/AttachableThreadedLogger.php

0 commit comments

Comments
 (0)