mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
22 lines
381 B
PHP
22 lines
381 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('Invalid expectation value type. Expected [%s].', $type));
|
|
}
|
|
}
|