Skip to content

Commit 87516ff

Browse files
committed
Require PHPStan 1.10
1 parent bf47c49 commit 87516ff

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.9.3"
10+
"phpstan/phpstan": "^1.10"
1111
},
1212
"conflict": {
1313
"phpunit/phpunit": "<7.0"

tests/Rules/PHPUnit/AssertSameMethodDifferentTypesRuleTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function testRule(): void
4343
[
4444
'Call to method PHPUnit\Framework\Assert::assertSame() with array<string> and array<int> will always evaluate to false.',
4545
39,
46+
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
4647
],
4748
[
4849
'Call to method PHPUnit\Framework\Assert::assertSame() with 1 and 1 will always evaluate to true.',

tests/Rules/PHPUnit/ImpossibleCheckTypeMethodCallRuleTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function testBug141(): void
3737
[
3838
"Call to method PHPUnit\Framework\Assert::assertEmpty() with non-empty-array<'0.6.0'|'1.0.0'|'1.0.x-dev'|'1.1.x-dev'|'9999999-dev'|'dev-feature-b', true> will always evaluate to false.",
3939
23,
40+
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
4041
],
4142
]);
4243
}

0 commit comments

Comments
 (0)