Skip to content

Commit 210bff5

Browse files
Import symbols
1 parent 6fce887 commit 210bff5

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

src/Framework/Constraint/Cardinality/SameSize.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\Framework\Constraint;
1111

12+
use Countable;
1213
use PHPUnit\Framework\Exception;
1314

1415
/**
@@ -17,7 +18,7 @@
1718
final class SameSize extends Count
1819
{
1920
/**
20-
* @psalm-param \Countable|iterable $expected
21+
* @psalm-param Countable|iterable $expected
2122
*
2223
* @throws Exception
2324
*/

src/Framework/MockObject/Runtime/Rule/MethodName.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use function is_string;
1313
use PHPUnit\Framework\Constraint\Constraint;
14+
use PHPUnit\Framework\ExpectationFailedException;
1415
use PHPUnit\Framework\InvalidArgumentException;
1516
use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;
1617
use PHPUnit\Framework\MockObject\MethodNameConstraint;
@@ -40,15 +41,15 @@ public function toString(): string
4041
}
4142

4243
/**
43-
* @throws \PHPUnit\Framework\ExpectationFailedException
44+
* @throws ExpectationFailedException
4445
*/
4546
public function matches(BaseInvocation $invocation): bool
4647
{
4748
return $this->matchesName($invocation->methodName());
4849
}
4950

5051
/**
51-
* @throws \PHPUnit\Framework\ExpectationFailedException
52+
* @throws ExpectationFailedException
5253
*/
5354
public function matchesName(string $methodName): bool
5455
{

src/TextUI/Command/Commands/WarmCodeCoverageCacheCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace PHPUnit\TextUI\Command;
1111

12+
use const PHP_EOL;
1213
use function printf;
1314
use PHPUnit\TextUI\Configuration\CodeCoverageFilterRegistry;
1415
use PHPUnit\TextUI\Configuration\Configuration;
@@ -68,7 +69,7 @@ public function execute(): Result
6869
printf(
6970
'[%s]%s',
7071
$timer->stop()->asString(),
71-
\PHP_EOL,
72+
PHP_EOL,
7273
);
7374

7475
return Result::from();

src/TextUI/Configuration/Xml/Validator/ValidationResult.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use function sprintf;
1313
use function trim;
14+
use LibXMLError;
1415

1516
/**
1617
* @internal This class is not covered by the backward compatibility promise for PHPUnit
@@ -25,7 +26,7 @@ final class ValidationResult
2526
private readonly array $validationErrors;
2627

2728
/**
28-
* @psalm-param array<int,\LibXMLError> $errors
29+
* @psalm-param array<int,LibXMLError> $errors
2930
*/
3031
public static function fromArray(array $errors): self
3132
{

0 commit comments

Comments
 (0)