mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix phpstan failure
This commit is contained in:
@ -7,8 +7,6 @@ parameters:
|
|||||||
level: 8
|
level: 8
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
parallel:
|
|
||||||
maximumNumberOfProcesses: 1
|
|
||||||
|
|
||||||
checkMissingIterableValueType: true
|
checkMissingIterableValueType: true
|
||||||
checkGenericClassInNonGenericObjectType: false
|
checkGenericClassInNonGenericObjectType: false
|
||||||
|
|||||||
@ -32,7 +32,7 @@ final class OppositeExpectation
|
|||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
try {
|
try {
|
||||||
$this->original->toHaveKey($key);
|
$this->original->toHaveKey($key);
|
||||||
} catch (ExpectationFailedException) {
|
} catch (ExpectationFailedException $exception) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ final class OppositeExpectation
|
|||||||
try {
|
try {
|
||||||
/* @phpstan-ignore-next-line */
|
/* @phpstan-ignore-next-line */
|
||||||
$this->original->{$name}(...$arguments);
|
$this->original->{$name}(...$arguments);
|
||||||
} catch (ExpectationFailedException) {
|
} catch (ExpectationFailedException $exception) {
|
||||||
return $this->original;
|
return $this->original;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ final class OppositeExpectation
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->original->{$name}; // @phpstan-ignore-line
|
$this->original->{$name}; // @phpstan-ignore-line
|
||||||
} catch (ExpectationFailedException) { // @phpstan-ignore-line
|
} catch (ExpectationFailedException $exception) { // @phpstan-ignore-line
|
||||||
return $this->original;
|
return $this->original;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user