-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathphpstan.neon
More file actions
52 lines (43 loc) · 2.15 KB
/
phpstan.neon
File metadata and controls
52 lines (43 loc) · 2.15 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
parameters:
level: 8
paths:
- src
fileExtensions:
- php
- phtml
ignoreErrors:
- # IResponse::setCookie() interface does not yet declare $sameSite parameter, Response::setCookie() does
message: '#^Unknown parameter \$sameSite in call to method Nette\\Http\\IResponse\:\:setCookie\(\)\.$#'
identifier: argument.unknown
count: 1
path: src/Http/Helpers.php
- # runtime validation of HTTP header value coming from untrusted client input
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/Http/Request.php
- # $remoteHost kept in constructor signature for BC; unused since getRemoteHost() is deprecated and returns null
message: '#^Constructor of class Nette\\Http\\Request has an unused parameter \$remoteHost\.$#'
identifier: constructor.unusedParameter
count: 1
path: src/Http/Request.php
- # $_FILES may be undefined under non-standard SAPIs (CLI, custom request setup in tests)
message: '#^Variable \$_FILES on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.variable
count: 1
path: src/Http/RequestFactory.php
- # defensive check kept for robustness against malformed $_FILES structures
message: "#^Offset 'name' on non\\-empty\\-array in isset\\(\\) always exists and is not nullable\\.$#"
identifier: isset.offset
count: 1
path: src/Http/RequestFactory.php
- # IResponse::setCookie() interface does not yet declare $sameSite parameter, see Helpers.php
message: '#^Method Nette\\Http\\IResponse\:\:setCookie\(\) invoked with 8 parameters, 3\-7 required\.$#'
identifier: arguments.count
count: 1
path: src/Http/Session.php
- # session_get_cookie_params() declares 'samesite' key but it may legitimately be missing on older configurations
message: '#^Offset ''samesite'' on array\{lifetime\: int\<0, max\>, path\: non\-falsy\-string, domain\: string, secure\: bool, httponly\: bool, samesite\: ''Lax''\|''lax''\|''None''\|''none''\|''Strict''\|''strict''\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: src/Http/Session.php