Skip to content

Commit 08eae65

Browse files
committed
docs: update PHPDocs
1 parent 1d3336b commit 08eae65

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5935,12 +5935,6 @@
59355935
'count' => 1,
59365936
'path' => __DIR__ . '/system/HTTP/ContentSecurityPolicy.php',
59375937
];
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-
];
59445938
$ignoreErrors[] = [
59455939
// identifier: codeigniter.superglobalAccess
59465940
'message' => '#^Accessing offset \'HTTP_USER_AGENT\' directly on \\$_SERVER is discouraged\\.$#',

system/HTTP/ContentSecurityPolicy.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ContentSecurityPolicy
3131
/**
3232
* CSP directives
3333
*
34-
* @var array<string, string>
34+
* @var array<string, string> [name => property]
3535
*/
3636
protected array $directives = [
3737
'base-uri' => 'baseURI',
@@ -166,7 +166,8 @@ class ContentSecurityPolicy
166166
protected $sandbox = [];
167167

168168
/**
169-
* Used for security enforcement
169+
* A set of endpoints to which csp violation reports will be sent when
170+
* particular behaviors are prevented.
170171
*
171172
* @var string|null
172173
*/
@@ -189,7 +190,7 @@ class ContentSecurityPolicy
189190
/**
190191
* Used for security enforcement
191192
*
192-
* @var array
193+
* @var list<string>
193194
*/
194195
protected $validSources = [
195196
'self',
@@ -242,7 +243,7 @@ class ContentSecurityPolicy
242243

243244
/**
244245
* An array of header info since we have
245-
* to build ourself before passing to Response.
246+
* to build ourselves before passing to Response.
246247
*
247248
* @var array
248249
*/

0 commit comments

Comments
 (0)