File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Configuration/Xml/Validator Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Framework \Constraint ;
11
11
12
+ use Countable ;
12
13
use PHPUnit \Framework \Exception ;
13
14
14
15
/**
17
18
final class SameSize extends Count
18
19
{
19
20
/**
20
- * @psalm-param \ Countable|iterable $expected
21
+ * @psalm-param Countable|iterable $expected
21
22
*
22
23
* @throws Exception
23
24
*/
Original file line number Diff line number Diff line change 11
11
12
12
use function is_string ;
13
13
use PHPUnit \Framework \Constraint \Constraint ;
14
+ use PHPUnit \Framework \ExpectationFailedException ;
14
15
use PHPUnit \Framework \InvalidArgumentException ;
15
16
use PHPUnit \Framework \MockObject \Invocation as BaseInvocation ;
16
17
use PHPUnit \Framework \MockObject \MethodNameConstraint ;
@@ -40,15 +41,15 @@ public function toString(): string
40
41
}
41
42
42
43
/**
43
- * @throws \PHPUnit\Framework\ ExpectationFailedException
44
+ * @throws ExpectationFailedException
44
45
*/
45
46
public function matches (BaseInvocation $ invocation ): bool
46
47
{
47
48
return $ this ->matchesName ($ invocation ->methodName ());
48
49
}
49
50
50
51
/**
51
- * @throws \PHPUnit\Framework\ ExpectationFailedException
52
+ * @throws ExpectationFailedException
52
53
*/
53
54
public function matchesName (string $ methodName ): bool
54
55
{
Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \TextUI \Command ;
11
11
12
+ use const PHP_EOL ;
12
13
use function printf ;
13
14
use PHPUnit \TextUI \Configuration \CodeCoverageFilterRegistry ;
14
15
use PHPUnit \TextUI \Configuration \Configuration ;
@@ -68,7 +69,7 @@ public function execute(): Result
68
69
printf (
69
70
'[%s]%s ' ,
70
71
$ timer ->stop ()->asString (),
71
- \ PHP_EOL ,
72
+ PHP_EOL ,
72
73
);
73
74
74
75
return Result::from ();
Original file line number Diff line number Diff line change 11
11
12
12
use function sprintf ;
13
13
use function trim ;
14
+ use LibXMLError ;
14
15
15
16
/**
16
17
* @internal This class is not covered by the backward compatibility promise for PHPUnit
@@ -25,7 +26,7 @@ final class ValidationResult
25
26
private readonly array $ validationErrors ;
26
27
27
28
/**
28
- * @psalm-param array<int,\ LibXMLError> $errors
29
+ * @psalm-param array<int,LibXMLError> $errors
29
30
*/
30
31
public static function fromArray (array $ errors ): self
31
32
{
You can’t perform that action at this time.
0 commit comments