Files
pest/src/Exceptions/InvalidExpectationValue.php
T
2026-08-07 15:26:55 +01:00

22 lines
393 B
PHP

<?php
declare(strict_types=1);
namespace Pest\Exceptions;
use InvalidArgumentException;
/**
* @internal
*/
final class InvalidExpectationValue extends InvalidArgumentException
{
/**
* @throws self
*/
public static function expected(string $type): never
{
throw new self(sprintf('This expectation may only be used on a value of type [%s].', $type));
}
}