-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpstan.neon
38 lines (38 loc) · 2.09 KB
/
phpstan.neon
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
34
35
36
37
38
parameters:
treatPhpDocTypesAsCertain: false
level: 8
paths:
- ./
excludePaths:
- %rootDir%/../../../tests/*
- %rootDir%/../../../vendor/*
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
# Arrays can be callable
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array{.Zend_Session…., .handleSessionStartE….} given\.#'
path: './src/Zend/Session.php'
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array{.Zend_Session…., .handleSilentWriteCl….} given\.#'
path: './src/Zend/Session.php'
-
message: '#Parameter \#6 \$gc of function session_set_save_handler expects callable\(string\): bool, array{Zend_Session_SaveHandler_Interface, .gc.} given\.#'
path: './src/Zend/Session.php'
# I think phpstan doesn't like the type of the closure here
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, Closure\(mixed, mixed, mixed, mixed, mixed=\): void given\.#'
path: './src/Zend/Session.php'
# Session extension is required by composer, shouldn't hit false here
-
message: '#Argument of an invalid type array\|false supplied for foreach, only iterables are supported\.#'
path: './src/Zend/Session.php'
# PHPStan is inferring using reflection I think, docs don't show false (phpstan is probably correct but not going to change code for now)
-
message: '#Method Zend_Session::getId\(\) should return string but returns string\|false\.#'
path: './src/Zend/Session.php'
-
message: '#Parameter \#1 \$name of function setcookie expects string, string\|false given\.#'
path: './src/Zend/Session.php'