mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: improves type coverage
This commit is contained in:
@ -70,10 +70,12 @@ final class Expectation
|
||||
InvalidExpectationValue::expected('string');
|
||||
}
|
||||
|
||||
/** @var array<int|string, mixed>|bool $value */
|
||||
$value = json_decode($this->value, true, 512);
|
||||
$this->toBeJson();
|
||||
|
||||
return $this->toBeJson()->and($value);
|
||||
/** @var array<int|string, mixed>|bool $value */
|
||||
$value = json_decode($this->value, true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
return $this->and($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user