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
+1
View File
@@ -12,6 +12,7 @@ parameters:
reportUnmatchedIgnoredErrors: true
ignoreErrors:
- '#Cannot instantiate interface PHPUnit\\Util\\Exception#'
- "#with a nullable type declaration#"
- "#type mixed is not subtype of native#"
- "#is not allowed to extend#"
@@ -161,7 +161,6 @@ final class HigherOrderExpectation
*/
private function getValue(): mixed
{
// @phpstan-ignore-next-line
return $this->shouldReset ? $this->original->value : $this->expectation->value;
}
+1 -1
View File
@@ -8,9 +8,9 @@ use ParseError;
use Pest\Concerns;
use Pest\Contracts\HasPrintableTestCaseName;
use Pest\Exceptions\DatasetMissing;
use Pest\Exceptions\TestDescriptionMissing;
use Pest\Exceptions\ShouldNotHappen;
use Pest\Exceptions\TestAlreadyExist;
use Pest\Exceptions\TestDescriptionMissing;
use Pest\Factories\Concerns\HigherOrderable;
use Pest\Plugins\Environment;
use Pest\Support\Reflection;
-1
View File
@@ -524,7 +524,6 @@ final class Expectation
{
Assert::assertIsString($this->value, $message);
// @phpstan-ignore-next-line
Assert::assertJson($this->value, $message);
return $this;