mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
chore: improves type checking
This commit is contained in:
@ -161,7 +161,6 @@ final class HigherOrderExpectation
|
||||
*/
|
||||
private function getValue(): mixed
|
||||
{
|
||||
// @phpstan-ignore-next-line
|
||||
return $this->shouldReset ? $this->original->value : $this->expectation->value;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -524,7 +524,6 @@ final class Expectation
|
||||
{
|
||||
Assert::assertIsString($this->value, $message);
|
||||
|
||||
// @phpstan-ignore-next-line
|
||||
Assert::assertJson($this->value, $message);
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user