File "UnknownDriver.php"

Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/doctrine/dbal/src/UnknownDriver.php
File size: 605 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Exception;

use function implode;
use function sprintf;

/** @psalm-immutable */
final class UnknownDriver extends InvalidArgumentException
{
    /** @param string[] $knownDrivers */
    public static function new(string $unknownDriverName, array $knownDrivers): self
    {
        return new self(
            sprintf(
                'The given driver "%s" is unknown, Doctrine currently supports only the following drivers: %s',
                $unknownDriverName,
                implode(', ', $knownDrivers),
            ),
        );
    }
}