Skip to content

Commit be21080

Browse files
committed
update phpstan baseline
1 parent 68b9adb commit be21080

File tree

4 files changed

+4
-39
lines changed

4 files changed

+4
-39
lines changed

utils/phpstan-baseline/codeigniter.superglobalAccess.neon

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 77 errors
1+
# total 68 errors
22

33
parameters:
44
ignoreErrors:
@@ -117,16 +117,6 @@ parameters:
117117
count: 2
118118
path: ../../system/HTTP/Response.php
119119

120-
-
121-
message: '#^Accessing offset ''HTTP_REFERER'' directly on \$_SERVER is discouraged\.$#'
122-
count: 4
123-
path: ../../system/HTTP/UserAgent.php
124-
125-
-
126-
message: '#^Accessing offset ''HTTP_USER_AGENT'' directly on \$_SERVER is discouraged\.$#'
127-
count: 2
128-
path: ../../system/HTTP/UserAgent.php
129-
130120
-
131121
message: '#^Accessing offset mixed directly on \$_GET is discouraged\.$#'
132122
count: 1
@@ -212,16 +202,6 @@ parameters:
212202
count: 1
213203
path: ../../tests/system/HTTP/SiteURIFactoryDetectRoutePathTest.php
214204

215-
-
216-
message: '#^Accessing offset ''HTTP_REFERER'' directly on \$_SERVER is discouraged\.$#'
217-
count: 1
218-
path: ../../tests/system/HTTP/UserAgentTest.php
219-
220-
-
221-
message: '#^Accessing offset ''HTTP_USER_AGENT'' directly on \$_SERVER is discouraged\.$#'
222-
count: 2
223-
path: ../../tests/system/HTTP/UserAgentTest.php
224-
225205
-
226206
message: '#^Accessing offset ''HTTP_HOST'' directly on \$_SERVER is discouraged\.$#'
227207
count: 1

utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 463 errors
1+
# total 460 errors
22

33
parameters:
44
ignoreErrors:
@@ -662,16 +662,6 @@ parameters:
662662
count: 3
663663
path: ../../tests/system/HTTP/URITest.php
664664

665-
-
666-
message: '#^Assigning ''http\://codeigniter\.com/user_guide/'' directly on offset ''HTTP_REFERER'' of \$_SERVER is discouraged\.$#'
667-
count: 1
668-
path: ../../tests/system/HTTP/UserAgentTest.php
669-
670-
-
671-
message: '#^Assigning string directly on offset ''HTTP_USER_AGENT'' of \$_SERVER is discouraged\.$#'
672-
count: 2
673-
path: ../../tests/system/HTTP/UserAgentTest.php
674-
675665
-
676666
message: '#^Assigning ''/'' directly on offset ''REQUEST_URI'' of \$_SERVER is discouraged\.$#'
677667
count: 1

utils/phpstan-baseline/empty.notAllowed.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 239 errors
1+
# total 237 errors
22

33
parameters:
44
ignoreErrors:
@@ -242,11 +242,6 @@ parameters:
242242
count: 2
243243
path: ../../system/HTTP/Response.php
244244

245-
-
246-
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
247-
count: 2
248-
path: ../../system/HTTP/UserAgent.php
249-
250245
-
251246
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
252247
count: 1

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2788 errors
1+
# total 2774 errors
22

33
includes:
44
- argument.type.neon

0 commit comments

Comments
 (0)