Skip to content

Commit 7db7215

Browse files
herndlmondrejmirtes
authored andcommitted
Fix allSubclassOf test case
1 parent 522c761 commit 7db7215

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.7"
1111
},
1212
"require-dev": {
1313
"beberlei/assert": "^3.3.0",

tests/Type/BeberleiAssert/data/data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
107107
\PHPStan\Testing\assertType('class-string<PHPStan\Type\BeberleiAssert\Foo>|PHPStan\Type\BeberleiAssert\Foo', $aa);
108108

109109
Assertion::allSubclassOf($ab, self::class);
110-
\PHPStan\Testing\assertType('array<*NEVER*>', $ab); // // should be array<PHPStan\Type\BeberleiAssert\Foo>
110+
\PHPStan\Testing\assertType('array<class-string<PHPStan\Type\BeberleiAssert\Foo>|PHPStan\Type\BeberleiAssert\Foo>', $ab);
111111

112112
Assertion::isJsonString($ac);
113113
\PHPStan\Testing\assertType('string', $ac);

0 commit comments

Comments
 (0)