1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace ClickHouseDB\Exception; |
||
6 | |||
7 | use InvalidArgumentException; |
||
8 | use function gettype; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
9 | use function sprintf; |
||
10 | |||
11 | final class UnsupportedValueType extends InvalidArgumentException implements ClickHouseException |
||
12 | { |
||
13 | /** |
||
14 | * @param mixed $parameter |
||
15 | */ |
||
16 | 1 | public static function new($parameter) : self |
|
0 ignored issues
–
show
|
|||
17 | { |
||
18 | 1 | return new self(sprintf('Parameter of type "%s" cannot be bound', gettype($parameter))); |
|
19 | } |
||
20 | } |
||
21 |