mirror of
https://github.com/pestphp/pest.git
synced 2026-12-05 07:15:33 +01:00
chore: refactors exceptions
This commit is contained in:
@@ -16,6 +16,6 @@ final class InvalidExpectationValue extends InvalidArgumentException
|
||||
*/
|
||||
public static function expected(string $type): never
|
||||
{
|
||||
throw new self(sprintf('Invalid expectation value type. Expected [%s].', $type));
|
||||
throw new self(sprintf('This expectation may only be used on a value of type [%s].', $type));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user