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