blob: 2cbe82aa4744f4ee8e0819d4615c5935e64776d7 (
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\Connection;
use function sprintf;
/** @psalm-immutable */
final class InvalidWrapperClass extends InvalidArgumentException
{
public static function new(string $wrapperClass): self
{
return new self(
sprintf(
'The given wrapper class %s has to be a subtype of %s.',
$wrapperClass,
Connection::class,
),
);
}
}
|