mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
chore: improves type coverage
This commit is contained in:
@ -12,11 +12,9 @@ use InvalidArgumentException;
|
||||
final class InvalidExpectationValue extends InvalidArgumentException
|
||||
{
|
||||
/**
|
||||
* @return never
|
||||
*
|
||||
* @throws self
|
||||
*/
|
||||
public static function expected(string $type): void
|
||||
public static function expected(string $type): never
|
||||
{
|
||||
throw new self(sprintf('Invalid expectation value type. Expected [%s].', $type));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user