Passed
Push — master ( cc4828...00e84f )
by Igor
10:05
created

src/Exception/UnsupportedValueType.php (2 issues)

Severity
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
Expected 1 lines between different types of use statement, found 0.
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
There must be no whitespace between closing parenthesis and return type colon.
Loading history...
17
    {
18 1
        return new self(sprintf('Parameter of type "%s" cannot be bound', gettype($parameter)));
19
    }
20
}
21