Skip to content

Commit f2687ce

Browse files
committed
Fix build
1 parent f8a8306 commit f2687ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.4 || ^8.0",
10-
"phpstan/phpstan": "^2.0"
10+
"phpstan/phpstan": "^2.1.7"
1111
},
1212
"require-dev": {
1313
"nikic/php-parser": "^5.1",

Diff for: tests/Type/WebMozartAssert/data/collection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ public function allInstanceOf(array $a, array $b, array $c, $d): void
8686
* @param (CollectionFoo|stdClass)[] $b
8787
* @param CollectionFoo[] $c
8888
*/
89-
public function allNotInstanceOf(array $a, array $b, array $c): void
89+
public function allNotInstanceOf(array $a, array $b, array $c, \stdClass $std): void
9090
{
9191
Assert::allNotInstanceOf($a, CollectionBar::class);
9292
assertType('array<PHPStan\Type\WebMozartAssert\CollectionFoo>', $a);
9393

94-
Assert::allNotInstanceOf($b, new stdClass());
94+
Assert::allNotInstanceOf($b, $std);
9595
assertType('array<PHPStan\Type\WebMozartAssert\CollectionFoo>', $b);
9696

9797
Assert::allNotInstanceOf($c, 17);

0 commit comments

Comments
 (0)