File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 5935
5935
'count' => 1,
5936
5936
'path' => __DIR__ . '/system/HTTP/ContentSecurityPolicy.php',
5937
5937
];
5938
- $ignoreErrors[] = [
5939
- // identifier: missingType.iterableValue
5940
- 'message' => '#^Property CodeIgniter\\\\HTTP\\\\ContentSecurityPolicy\\:\\:\\$validSources type has no value type specified in iterable type array\\.$#',
5941
- 'count' => 1,
5942
- 'path' => __DIR__ . '/system/HTTP/ContentSecurityPolicy.php',
5943
- ];
5944
5938
$ignoreErrors[] = [
5945
5939
// identifier: codeigniter.superglobalAccess
5946
5940
'message' => '#^Accessing offset \'HTTP_USER_AGENT\' directly on \\$_SERVER is discouraged\\.$#',
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ContentSecurityPolicy
31
31
/**
32
32
* CSP directives
33
33
*
34
- * @var array<string, string>
34
+ * @var array<string, string> [name => property]
35
35
*/
36
36
protected array $ directives = [
37
37
'base-uri ' => 'baseURI ' ,
@@ -166,7 +166,8 @@ class ContentSecurityPolicy
166
166
protected $ sandbox = [];
167
167
168
168
/**
169
- * Used for security enforcement
169
+ * A set of endpoints to which csp violation reports will be sent when
170
+ * particular behaviors are prevented.
170
171
*
171
172
* @var string|null
172
173
*/
@@ -189,7 +190,7 @@ class ContentSecurityPolicy
189
190
/**
190
191
* Used for security enforcement
191
192
*
192
- * @var array
193
+ * @var list<string>
193
194
*/
194
195
protected $ validSources = [
195
196
'self ' ,
@@ -242,7 +243,7 @@ class ContentSecurityPolicy
242
243
243
244
/**
244
245
* An array of header info since we have
245
- * to build ourself before passing to Response.
246
+ * to build ourselves before passing to Response.
246
247
*
247
248
* @var array
248
249
*/
You can’t perform that action at this time.
0 commit comments