Skip to content

Commit 0397f9e

Browse files
staabmsebastianbergmann
authored andcommitted
Fix call-sites
1 parent f121a55 commit 0397f9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Framework/TestSuite.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public static function empty(string $name): static
8383
}
8484

8585
/**
86+
* @psalm-param ReflectionClass<TestCase> $class
8687
* @psalm-param list<non-empty-string> $groups
8788
*/
8889
public static function fromClassReflector(ReflectionClass $class, array $groups = []): static
@@ -475,14 +476,15 @@ public function sortId(): string
475476
}
476477

477478
/**
478-
* @psalm-assert-if-true class-string $this->name
479+
* @psalm-assert-if-true class-string<TestCase> $this->name
479480
*/
480481
public function isForTestClass(): bool
481482
{
482483
return class_exists($this->name, false) && is_subclass_of($this->name, TestCase::class);
483484
}
484485

485486
/**
487+
* @psalm-param ReflectionClass<TestCase> $class
486488
* @psalm-param list<non-empty-string> $groups
487489
*
488490
* @throws Exception

src/Metadata/Api/HookMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010
namespace PHPUnit\Metadata\Api;
1111

12-
use PHPUnit\Framework\TestCase;
1312
use function array_unshift;
1413
use function assert;
1514
use function class_exists;
15+
use PHPUnit\Framework\TestCase;
1616
use PHPUnit\Metadata\Parser\Registry;
1717
use PHPUnit\Util\Reflection;
1818
use ReflectionClass;

0 commit comments

Comments
 (0)