UnknownParameterType.php 427 Bytes
Newer Older
1 2 3 4
<?php

declare(strict_types=1);

5
namespace Doctrine\DBAL\Driver\Exception;
6

7
use Doctrine\DBAL\Driver\AbstractException;
8 9 10 11 12 13 14 15

use function sprintf;

/**
 * @internal
 *
 * @psalm-immutable
 */
16
final class UnknownParameterType extends AbstractException
17 18 19 20 21 22
{
    /**
     * @param mixed $type
     */
    public static function new($type): self
    {
23
        return new self(sprintf('Unknown parameter type, %d given.', $type));
24 25
    }
}