-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
157 lines (136 loc) · 6.99 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
157 lines (136 loc) · 6.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
parameters:
ignoreErrors:
-
message: '#^Method Nelmio\\SecurityBundle\\ContentSecurityPolicy\\DirectiveSet\:\:normalizeSignatures\(\) should return array\<string, string\>\|null but returns array\<string, list\<string\>\|string\>\.$#'
identifier: return.type
count: 1
path: src/ContentSecurityPolicy/DirectiveSet.php
-
message: '#^Parameter \#1 \$bool of method Nelmio\\SecurityBundle\\ContentSecurityPolicy\\DirectiveSet\:\:setLevel1Fallback\(\) expects bool, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ContentSecurityPolicy/DirectiveSet.php
-
message: '#^Parameter \#1 \$sourceList of method Nelmio\\SecurityBundle\\ContentSecurityPolicy\\ContentSecurityPolicyParser\:\:parseSourceList\(\) expects list\<string\>\|true, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ContentSecurityPolicy/DirectiveSet.php
-
message: '#^Method Nelmio\\SecurityBundle\\ContentSecurityPolicy\\PolicyManager\:\:getFirefoxDirectives\(\) should return list\<string\> but returns array\<int\<0, max\>, string\>\.$#'
identifier: return.type
count: 1
path: src/ContentSecurityPolicy/PolicyManager.php
-
message: '#^Parameter \#1 \$data of class Nelmio\\SecurityBundle\\ContentSecurityPolicy\\Violation\\Report constructor expects array\{document\-uri\?\: string, referrer\?\: string, blocked\-uri\?\: string, effective\-directive\?\: string, violated\-directive\?\: string, original\-policy\?\: string, disposition\?\: string, status\-code\?\: int, \.\.\.\}, non\-empty\-array given\.$#'
identifier: argument.type
count: 1
path: src/ContentSecurityPolicy/Violation/Report.php
-
message: '#^Property Nelmio\\SecurityBundle\\ContentSecurityPolicy\\Violation\\Report\:\:\$data \(array\{document\-uri\?\: string, referrer\?\: string, blocked\-uri\?\: string, effective\-directive\?\: string, violated\-directive\?\: string, original\-policy\?\: string, disposition\?\: string, status\-code\?\: int, \.\.\.\}\) does not accept array\{document\-uri\?\: int\|string, referrer\?\: int\|string, blocked\-uri\?\: int\|string, effective\-directive\?\: int\|string, violated\-directive\?\: int\|string, original\-policy\?\: int\|string, disposition\?\: int\|string, status\-code\?\: int\|string, \.\.\.\}\.$#'
identifier: assign.propertyType
count: 1
path: src/ContentSecurityPolicy/Violation/Report.php
-
message: '#^Parameter \#1 \$name of class Symfony\\Component\\HttpFoundation\\Cookie constructor expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/EventListener/FlexibleSslListener.php
-
message: '#^Parameter \#2 \$value of class Symfony\\Component\\HttpFoundation\\Cookie constructor expects string\|null, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/EventListener/FlexibleSslListener.php
-
message: '''
#^Access to constant on deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: classConstant.deprecatedClass
count: 2
path: src/Resources/config/xss_protection.php
-
message: '#^Method Nelmio\\SecurityBundle\\UserAgent\\UAFamilyParser\\PsrCacheUAFamilyParser\:\:getUaFamily\(\) should return string but returns mixed\.$#'
identifier: return.type
count: 1
path: src/UserAgent/UAFamilyParser/PsrCacheUAFamilyParser.php
-
message: '#^Cannot access offset ''report\-uri'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 3
path: tests/DependencyInjection/ConfigurationTest.php
-
message: '#^Cannot access offset ''script\-src'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: tests/DependencyInjection/ConfigurationTest.php
-
message: '#^Parameter \#1 \$parsedYaml of method Nelmio\\SecurityBundle\\Tests\\DependencyInjection\\ConfigurationTest\:\:processYaml\(\) expects array\<mixed\>, mixed given\.$#'
identifier: argument.type
count: 1
path: tests/DependencyInjection/ConfigurationTest.php
-
message: '#^Only booleans are allowed in a ternary operator condition, \(callable\)\|null given\.$#'
identifier: ternary.condNotBoolean
count: 1
path: tests/DependencyInjection/NelmioSecurityExtensionTest.php
-
message: '''
#^Call to deprecated method getEnforcement\(\) of class Nelmio\\SecurityBundle\\EventListener\\ContentSecurityPolicyListener\:
Use `nelmio_security\.directive_set_builder\.enforce` instead\.$#
'''
identifier: method.deprecated
count: 1
path: tests/Listener/ContentSecurityPolicyListenerTest.php
-
message: '''
#^Call to deprecated method getReport\(\) of class Nelmio\\SecurityBundle\\EventListener\\ContentSecurityPolicyListener\:
Use `nelmio_security\.directive_set_builder\.report` instead\.$#
'''
identifier: method.deprecated
count: 1
path: tests/Listener/ContentSecurityPolicyListenerTest.php
-
message: '#^Parameter \#4 \$targetValidator of class Nelmio\\SecurityBundle\\EventListener\\ExternalRedirectListener constructor expects list\<string\>\|Nelmio\\SecurityBundle\\ExternalRedirect\\TargetValidator\|string\|null, array\<string\> given\.$#'
identifier: argument.type
count: 2
path: tests/Listener/ExternalRedirectListenerTest.php
-
message: '''
#^Call to method __construct\(\) of deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: method.deprecatedClass
count: 6
path: tests/Listener/XssProtectionListenerTest.php
-
message: '''
#^Call to method onKernelResponse\(\) of deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: method.deprecatedClass
count: 2
path: tests/Listener/XssProtectionListenerTest.php
-
message: '''
#^Instantiation of deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: new.deprecatedClass
count: 6
path: tests/Listener/XssProtectionListenerTest.php
-
message: '''
#^Parameter \$listener of method Nelmio\\SecurityBundle\\Tests\\Listener\\XssProtectionListenerTest\:\:callListener\(\) has typehint with deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: parameter.deprecatedClass
count: 1
path: tests/Listener/XssProtectionListenerTest.php
-
message: '''
#^Parameter \$listener of method Nelmio\\SecurityBundle\\Tests\\Listener\\XssProtectionListenerTest\:\:testLegacyVariousConfig\(\) has typehint with deprecated class Nelmio\\SecurityBundle\\EventListener\\XssProtectionListener\:
since NelmioSecurityBundle 3\.4\.0, to be removed in 4\.0\.$#
'''
identifier: parameter.deprecatedClass
count: 1
path: tests/Listener/XssProtectionListenerTest.php