Skip to content

Commit

Permalink
dev: Update phpstan-baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Dec 26, 2024
1 parent 274f4d1 commit c31d553
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 345 deletions.
63 changes: 0 additions & 63 deletions utils/phpstan-baseline/booleanAnd.leftNotBoolean.neon

This file was deleted.

43 changes: 0 additions & 43 deletions utils/phpstan-baseline/booleanAnd.rightNotBoolean.neon

This file was deleted.

68 changes: 0 additions & 68 deletions utils/phpstan-baseline/booleanNot.exprNotBoolean.neon

This file was deleted.

13 changes: 0 additions & 13 deletions utils/phpstan-baseline/booleanOr.leftNotBoolean.neon

This file was deleted.

18 changes: 0 additions & 18 deletions utils/phpstan-baseline/booleanOr.rightNotBoolean.neon

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
parameters:
ignoreErrors:
-
message: '#^Assigning non\-falsy\-string directly on offset ''HTTP_HOST'' of \$_SERVER is discouraged\.$#'
message: '#^Assigning string directly on offset ''HTTP_HOST'' of \$_SERVER is discouraged\.$#'
count: 1
path: ../../system/Commands/Utilities/Routes.php

Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/elseif.condNotBoolean.neon

This file was deleted.

82 changes: 1 addition & 81 deletions utils/phpstan-baseline/if.condNotBoolean.neon
Original file line number Diff line number Diff line change
@@ -1,88 +1,8 @@
# total 17 errors
# total 1 error

parameters:
ignoreErrors:
-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
count: 1
path: ../../system/CLI/CLI.php

-
message: '#^Only booleans are allowed in an if condition, Config\\Routing given\.$#'
count: 1
path: ../../system/Commands/Utilities/Routes.php

-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
count: 3
path: ../../system/Commands/Utilities/Routes.php

-
message: '#^Only booleans are allowed in an if condition, TWhen given\.$#'
count: 1
path: ../../system/Database/BaseBuilder.php

-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
count: 1
path: ../../system/Database/MigrationRunner.php

-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
count: 1
path: ../../system/Email/Email.php

-
message: '#^Only booleans are allowed in an if condition, array\|string\|null given\.$#'
count: 2
path: ../../system/Encryption/Handlers/OpenSSLHandler.php

-
message: '#^Only booleans are allowed in an if condition, array\<string, string\> given\.$#'
count: 1
path: ../../system/HTTP/RedirectResponse.php

-
message: '#^Only booleans are allowed in an if condition, string given\.$#'
count: 1
path: ../../system/HTTP/Request.php

-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
count: 2
path: ../../system/HTTP/Response.php

-
message: '#^Only booleans are allowed in an if condition, array\|int\|string\|null given\.$#'
count: 2
path: ../../system/Model.php

-
message: '#^Only booleans are allowed in an if condition, object\|string\|null given\.$#'
count: 1
path: ../../system/RESTful/BaseResource.php

-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
count: 2
path: ../../system/Session/Handlers/Database/PostgreHandler.php

-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
count: 1
path: ../../system/Session/Handlers/MemcachedHandler.php

-
message: '#^Only booleans are allowed in an if condition, string\|null given\.$#'
count: 1
path: ../../system/View/Table.php

-
message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
count: 5
path: ../../tests/system/Models/FindModelTest.php

-
message: '#^Only booleans are allowed in an if condition, list\<string\> given\.$#'
count: 1
path: ../../tests/system/Test/FilterTestTraitTest.php
7 changes: 0 additions & 7 deletions utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
includes:
- argument.type.neon
- assign.propertyType.neon
- booleanAnd.leftNotBoolean.neon
- booleanAnd.rightAlwaysTrue.neon
- booleanAnd.rightNotBoolean.neon
- booleanNot.exprNotBoolean.neon
- booleanOr.leftNotBoolean.neon
- booleanOr.rightNotBoolean.neon
- class.notFound.neon
- codeigniter.cacheHandlerInstance.neon
- codeigniter.configArgumentInstanceof.neon
Expand All @@ -18,7 +13,6 @@ includes:
- codeigniter.superglobalAccessAssign.neon
- codeigniter.unknownServiceMethod.neon
- deadCode.unreachable.neon
- elseif.condNotBoolean.neon
- empty.notAllowed.neon
- empty.property.neon
- expr.resultUnused.neon
Expand Down Expand Up @@ -62,7 +56,6 @@ includes:
- return.type.neon
- return.unusedType.neon
- staticMethod.notFound.neon
- ternary.condNotBoolean.neon
- ternary.shortNotAllowed.neon
- unset.offset.neon
- varTag.type.neon
Expand Down
43 changes: 0 additions & 43 deletions utils/phpstan-baseline/ternary.condNotBoolean.neon

This file was deleted.

0 comments on commit c31d553

Please sign in to comment.