chore: improves type checking

This commit is contained in:
Nuno Maduro
2022-11-09 20:34:18 +00:00
parent 348bd4b923
commit 3e325e3364
4 changed files with 2 additions and 3 deletions

View File

@ -12,6 +12,7 @@ parameters:
reportUnmatchedIgnoredErrors: true reportUnmatchedIgnoredErrors: true
ignoreErrors: ignoreErrors:
- '#Cannot instantiate interface PHPUnit\\Util\\Exception#'
- "#with a nullable type declaration#" - "#with a nullable type declaration#"
- "#type mixed is not subtype of native#" - "#type mixed is not subtype of native#"
- "#is not allowed to extend#" - "#is not allowed to extend#"

View File

@ -161,7 +161,6 @@ final class HigherOrderExpectation
*/ */
private function getValue(): mixed private function getValue(): mixed
{ {
// @phpstan-ignore-next-line
return $this->shouldReset ? $this->original->value : $this->expectation->value; return $this->shouldReset ? $this->original->value : $this->expectation->value;
} }

View File

@ -8,9 +8,9 @@ use ParseError;
use Pest\Concerns; use Pest\Concerns;
use Pest\Contracts\HasPrintableTestCaseName; use Pest\Contracts\HasPrintableTestCaseName;
use Pest\Exceptions\DatasetMissing; use Pest\Exceptions\DatasetMissing;
use Pest\Exceptions\TestDescriptionMissing;
use Pest\Exceptions\ShouldNotHappen; use Pest\Exceptions\ShouldNotHappen;
use Pest\Exceptions\TestAlreadyExist; use Pest\Exceptions\TestAlreadyExist;
use Pest\Exceptions\TestDescriptionMissing;
use Pest\Factories\Concerns\HigherOrderable; use Pest\Factories\Concerns\HigherOrderable;
use Pest\Plugins\Environment; use Pest\Plugins\Environment;
use Pest\Support\Reflection; use Pest\Support\Reflection;

View File

@ -524,7 +524,6 @@ final class Expectation
{ {
Assert::assertIsString($this->value, $message); Assert::assertIsString($this->value, $message);
// @phpstan-ignore-next-line
Assert::assertJson($this->value, $message); Assert::assertJson($this->value, $message);
return $this; return $this;