Skip to content

Commit eae4e1c

Browse files
actions-userJoMessina
authored andcommitted
[rector] Rector fixes
1 parent f63ff64 commit eae4e1c

File tree

13 files changed

+16
-30
lines changed

13 files changed

+16
-30
lines changed

.github/workflows/phpspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Infection
1+
name: PhpSpec (dependencies conflict)
22
on: push
33
jobs:
44
phpspec:

extension/Matcher/ExecuteUncompiledMapping.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
use PhpSpec\Formatter\Presenter\Value\ValuePresenter;
1111
use PhpSpec\Matcher\BasicMatcher;
1212

13-
final class ExecuteUncompiledMapping extends BasicMatcher
13+
final readonly class ExecuteUncompiledMapping extends BasicMatcher
1414
{
15-
public function __construct(private readonly ValuePresenter $presenter)
15+
public function __construct(private ValuePresenter $presenter)
1616
{
1717
}
1818

@@ -32,11 +32,9 @@ protected function matches($subject, array $arguments): bool
3232
}
3333

3434
/**
35-
* @param mixed $subject
36-
*
3735
* @return NotEqualException
3836
*/
39-
protected function getFailureException(string $name, $subject, array $arguments): FailureException
37+
protected function getFailureException(string $name, mixed $subject, array $arguments): FailureException
4038
{
4139
[$input, $output, $expected] = $arguments;
4240

@@ -48,10 +46,7 @@ protected function getFailureException(string $name, $subject, array $arguments)
4846
), $expected, $output);
4947
}
5048

51-
/**
52-
* @param mixed $subject
53-
*/
54-
protected function getNegativeFailureException(string $name, $subject, array $arguments): FailureException
49+
protected function getNegativeFailureException(string $name, mixed $subject, array $arguments): FailureException
5550
{
5651
[$input, $output, $expected] = $arguments;
5752

extension/Matcher/ThrowWhenExecuteCompiledMappingMatcher.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,17 @@ public function __construct(private readonly Unwrapper $unwrapper, private reado
2424
{
2525
}
2626

27-
/**
28-
* @param mixed $subject
29-
*/
30-
public function supports(string $name, $subject, array $arguments): bool
27+
public function supports(string $name, mixed $subject, array $arguments): bool
3128
{
3229
return 'throwWhenExecuteCompiledMapping' === $name;
3330
}
3431

35-
/**
36-
* @param mixed $subject
37-
*/
38-
public function positiveMatch(string $name, $subject, array $arguments): DelayedCall
32+
public function positiveMatch(string $name, mixed $subject, array $arguments): DelayedCall
3933
{
4034
return $this->getDelayedCall($this->verifyPositive(...), $subject, $arguments);
4135
}
4236

43-
/**
44-
* @param mixed $subject
45-
*/
46-
public function negativeMatch(string $name, $subject, array $arguments): DelayedCall
37+
public function negativeMatch(string $name, mixed $subject, array $arguments): DelayedCall
4738
{
4839
return $this->getDelayedCall($this->verifyNegative(...), $subject, $arguments);
4940
}
File renamed without changes.

tests/functional/Mapping/Field/ConcatCopyValuesMapperTest.php renamed to functional/Mapping/Field/ConcatCopyValuesMapperTest.php

File renamed without changes.

tests/functional/Mapping/Field/ConstantValueMapperTest.php renamed to functional/Mapping/Field/ConstantValueMapperTest.php

File renamed without changes.
File renamed without changes.

tests/functional/Mapping/Field/ExpressionLanguageValueMapperTest.php renamed to functional/Mapping/Field/ExpressionLanguageValueMapperTest.php

File renamed without changes.

0 commit comments

Comments
 (0)