Skip to content

Commit baa3d14

Browse files
committed
Require PHPStan 1.10
1 parent a1dfe1f commit baa3d14

File tree

2 files changed

+3
-1
lines changed

2 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.0"
10+
"phpstan/phpstan": "^1.10"
1111
},
1212
"require-dev": {
1313
"nikic/php-parser": "^4.13.0",

tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function testExtension(): void
5555
[
5656
'Call to static method Webmozart\Assert\Assert::stringNotEmpty() with non-empty-string will always evaluate to true.',
5757
46,
58+
'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%</>.',
5859
],
5960
[
6061
'Call to static method Webmozart\Assert\Assert::nullOrStringNotEmpty() with non-empty-string will always evaluate to true.',
@@ -63,6 +64,7 @@ public function testExtension(): void
6364
[
6465
'Call to static method Webmozart\Assert\Assert::nullOrStringNotEmpty() with non-empty-string|null will always evaluate to true.',
6566
53,
67+
'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%</>.',
6668
],
6769
[
6870
'Call to static method Webmozart\Assert\Assert::allCount() with array<non-empty-array> and 2 will always evaluate to true.',

0 commit comments

Comments
 (0)