summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php')
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php b/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php
deleted file mode 100644
index 2ebfd87..0000000
--- a/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php
+++ /dev/null
@@ -1,24 +0,0 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Driver;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final class InvalidDriverClass extends InvalidArgumentException
13{
14 public static function new(string $driverClass): self
15 {
16 return new self(
17 sprintf(
18 'The given driver class %s has to implement the %s interface.',
19 $driverClass,
20 Driver::class,
21 ),
22 );
23 }
24}