Skip to content

Commit a20aa88

Browse files
authored
Merge pull request #6022 from samsonasik/update-phpstan-171
[PHPStan] Update to PHPStan ^1.7.1
2 parents daff2d7 + 84b1635 commit a20aa88

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"mikey179/vfsstream": "^1.6",
2222
"nexusphp/cs-config": "^3.3",
2323
"nexusphp/tachycardia": "^1.0",
24-
"phpstan/phpstan": "1.6.9",
24+
"phpstan/phpstan": "^1.7.1",
2525
"phpunit/phpunit": "^9.1",
2626
"predis/predis": "^1.1",
2727
"rector/rector": "0.13.0"

phpstan-baseline.neon.dist

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ parameters:
115115
count: 1
116116
path: system/CodeIgniter.php
117117

118-
-
119-
message: "#^Binary operation \"\\+\" between array\\<string, class\\-string\\>\\|false and non\\-empty\\-array\\<string, string\\> results in an error\\.$#"
120-
count: 1
121-
path: system/Common.php
122-
123118
-
124119
message: "#^Property CodeIgniter\\\\Database\\\\BaseBuilder\\:\\:\\$db \\(CodeIgniter\\\\Database\\\\BaseConnection\\) in empty\\(\\) is not falsy\\.$#"
125120
count: 1
@@ -576,7 +571,7 @@ parameters:
576571
path: system/HTTP/Request.php
577572

578573
-
579-
message: "#^Cannot unset offset 'path' on array\\{host\\: mixed\\}\\.$#"
574+
message: "#^Cannot unset offset 'path' on array{host: non-empty-string}\\.$#"
580575
count: 1
581576
path: system/HTTP/URI.php
582577

@@ -874,7 +869,6 @@ parameters:
874869
message: "#^Result of \\|\\| is always false\\.$#"
875870
paths:
876871
- system/Cache/CacheFactory.php
877-
- system/Filters/Filters.php
878872

879873
-
880874
message: "#^Binary operation \"/\" between string and 8 results in an error\\.$#"

tests/system/Filters/FiltersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class FiltersTest extends CIUnitTestCase
4646
{
4747
use ConfigFromArrayTrait;
4848

49-
protected $response;
49+
private $response;
5050

5151
protected function setUp(): void
5252
{

0 commit comments

Comments
 (0)