blob: 2ebfd87af70eb140692b67af7a3db3640c0e5221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Exception;
use Doctrine\DBAL\Driver;
use function sprintf;
/** @psalm-immutable */
final class InvalidDriverClass extends InvalidArgumentException
{
public static function new(string $driverClass): self
{
return new self(
sprintf(
'The given driver class %s has to implement the %s interface.',
$driverClass,
Driver::class,
),
);
}
}
|