Skip to content

Commit b5cc290

Browse files
committed
Require PHPStan 1.4.9
1 parent 1ca3c98 commit b5cc290

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.1 || ^8.0",
10-
"phpstan/phpstan": "^1.0"
10+
"phpstan/phpstan": "^1.4.9"
1111
},
1212
"conflict": {
1313
"phpunit/phpunit": "<7.0"

tests/Rules/PHPUnit/AssertSameMethodDifferentTypesRuleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public function testRule(): void
4848
'Call to method PHPUnit\Framework\Assert::assertSame() with 1 and 1 will always evaluate to true.',
4949
44,
5050
],
51+
[
52+
'Call to method PHPUnit\Framework\Assert::assertSame() with array{\'a\'} and array{\'a\', \'b\'} will always evaluate to false.',
53+
45,
54+
],
5155
[
5256
'Call to method PHPUnit\Framework\Assert::assertSame() with \'1\' and \'1\' will always evaluate to true.',
5357
46,
@@ -56,6 +60,10 @@ public function testRule(): void
5660
'Call to method PHPUnit\Framework\Assert::assertSame() with \'1\' and \'2\' will always evaluate to false.',
5761
47,
5862
],
63+
[
64+
'Call to method PHPUnit\Framework\Assert::assertSame() with array{\'a\'} and array{\'a\', 1} will always evaluate to false.',
65+
51,
66+
],
5967
[
6068
'Call to method PHPUnit\Framework\Assert::assertSame() with array{\'a\', 2, 3.0} and array{\'a\', 1} will always evaluate to false.',
6169
52,

0 commit comments

Comments
 (0)