Skip to content

Commit 26f3fb6

Browse files
committed
dev: Update phpstan-baseline
1 parent a92b2be commit 26f3fb6

10 files changed

+2
-345
lines changed

utils/phpstan-baseline/booleanAnd.leftNotBoolean.neon

Lines changed: 0 additions & 63 deletions
This file was deleted.

utils/phpstan-baseline/booleanAnd.rightNotBoolean.neon

Lines changed: 0 additions & 43 deletions
This file was deleted.

utils/phpstan-baseline/booleanNot.exprNotBoolean.neon

Lines changed: 0 additions & 68 deletions
This file was deleted.

utils/phpstan-baseline/booleanOr.leftNotBoolean.neon

Lines changed: 0 additions & 13 deletions
This file was deleted.

utils/phpstan-baseline/booleanOr.rightNotBoolean.neon

Lines changed: 0 additions & 18 deletions
This file was deleted.

utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
parameters:
44
ignoreErrors:
55
-
6-
message: '#^Assigning non\-falsy\-string directly on offset ''HTTP_HOST'' of \$_SERVER is discouraged\.$#'
6+
message: '#^Assigning string directly on offset ''HTTP_HOST'' of \$_SERVER is discouraged\.$#'
77
count: 1
88
path: ../../system/Commands/Utilities/Routes.php
99

utils/phpstan-baseline/elseif.condNotBoolean.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,8 @@
1-
# total 17 errors
1+
# total 1 error
22

33
parameters:
44
ignoreErrors:
55
-
66
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
77
count: 1
88
path: ../../system/CLI/CLI.php
9-
10-
-
11-
message: '#^Only booleans are allowed in an if condition, Config\\Routing given\.$#'
12-
count: 1
13-
path: ../../system/Commands/Utilities/Routes.php
14-
15-
-
16-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
17-
count: 3
18-
path: ../../system/Commands/Utilities/Routes.php
19-
20-
-
21-
message: '#^Only booleans are allowed in an if condition, TWhen given\.$#'
22-
count: 1
23-
path: ../../system/Database/BaseBuilder.php
24-
25-
-
26-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
27-
count: 1
28-
path: ../../system/Database/MigrationRunner.php
29-
30-
-
31-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
32-
count: 1
33-
path: ../../system/Email/Email.php
34-
35-
-
36-
message: '#^Only booleans are allowed in an if condition, array\|string\|null given\.$#'
37-
count: 2
38-
path: ../../system/Encryption/Handlers/OpenSSLHandler.php
39-
40-
-
41-
message: '#^Only booleans are allowed in an if condition, array\<string, string\> given\.$#'
42-
count: 1
43-
path: ../../system/HTTP/RedirectResponse.php
44-
45-
-
46-
message: '#^Only booleans are allowed in an if condition, string given\.$#'
47-
count: 1
48-
path: ../../system/HTTP/Request.php
49-
50-
-
51-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
52-
count: 2
53-
path: ../../system/HTTP/Response.php
54-
55-
-
56-
message: '#^Only booleans are allowed in an if condition, array\|int\|string\|null given\.$#'
57-
count: 2
58-
path: ../../system/Model.php
59-
60-
-
61-
message: '#^Only booleans are allowed in an if condition, object\|string\|null given\.$#'
62-
count: 1
63-
path: ../../system/RESTful/BaseResource.php
64-
65-
-
66-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
67-
count: 2
68-
path: ../../system/Session/Handlers/Database/PostgreHandler.php
69-
70-
-
71-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
72-
count: 1
73-
path: ../../system/Session/Handlers/MemcachedHandler.php
74-
75-
-
76-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
77-
count: 1
78-
path: ../../system/View/Table.php
79-
80-
-
81-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
82-
count: 5
83-
path: ../../tests/system/Models/FindModelTest.php
84-
85-
-
86-
message: '#^Only booleans are allowed in an if condition, list\<string\> given\.$#'
87-
count: 1
88-
path: ../../tests/system/Test/FilterTestTraitTest.php

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
includes:
22
- argument.type.neon
33
- assign.propertyType.neon
4-
- booleanAnd.leftNotBoolean.neon
54
- booleanAnd.rightAlwaysTrue.neon
6-
- booleanAnd.rightNotBoolean.neon
7-
- booleanNot.exprNotBoolean.neon
8-
- booleanOr.leftNotBoolean.neon
9-
- booleanOr.rightNotBoolean.neon
105
- class.notFound.neon
116
- codeigniter.cacheHandlerInstance.neon
127
- codeigniter.configArgumentInstanceof.neon
@@ -18,7 +13,6 @@ includes:
1813
- codeigniter.superglobalAccessAssign.neon
1914
- codeigniter.unknownServiceMethod.neon
2015
- deadCode.unreachable.neon
21-
- elseif.condNotBoolean.neon
2216
- empty.notAllowed.neon
2317
- empty.property.neon
2418
- expr.resultUnused.neon
@@ -60,7 +54,6 @@ includes:
6054
- return.type.neon
6155
- return.unusedType.neon
6256
- staticMethod.notFound.neon
63-
- ternary.condNotBoolean.neon
6457
- ternary.shortNotAllowed.neon
6558
- unset.offset.neon
6659
- varTag.type.neon

utils/phpstan-baseline/ternary.condNotBoolean.neon

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)