File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ public static function empty(string $name): static
83
83
}
84
84
85
85
/**
86
+ * @psalm-param ReflectionClass<TestCase> $class
86
87
* @psalm-param list<non-empty-string> $groups
87
88
*/
88
89
public static function fromClassReflector (ReflectionClass $ class , array $ groups = []): static
@@ -475,14 +476,15 @@ public function sortId(): string
475
476
}
476
477
477
478
/**
478
- * @psalm-assert-if-true class-string $this->name
479
+ * @psalm-assert-if-true class-string<TestCase> $this->name
479
480
*/
480
481
public function isForTestClass (): bool
481
482
{
482
483
return class_exists ($ this ->name , false ) && is_subclass_of ($ this ->name , TestCase::class);
483
484
}
484
485
485
486
/**
487
+ * @psalm-param ReflectionClass<TestCase> $class
486
488
* @psalm-param list<non-empty-string> $groups
487
489
*
488
490
* @throws Exception
Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Metadata \Api ;
11
11
12
- use PHPUnit \Framework \TestCase ;
13
12
use function array_unshift ;
14
13
use function assert ;
15
14
use function class_exists ;
15
+ use PHPUnit \Framework \TestCase ;
16
16
use PHPUnit \Metadata \Parser \Registry ;
17
17
use PHPUnit \Util \Reflection ;
18
18
use ReflectionClass ;
You can’t perform that action at this time.
0 commit comments