diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnknownParameter.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnknownParameter.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnknownParameter.php b/vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnknownParameter.php new file mode 100644 index 0000000..549f96d --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnknownParameter.php | |||
@@ -0,0 +1,20 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Driver\PgSQL\Exception; | ||
6 | |||
7 | use Doctrine\DBAL\Driver\AbstractException; | ||
8 | |||
9 | use function sprintf; | ||
10 | |||
11 | /** @psalm-immutable */ | ||
12 | final class UnknownParameter extends AbstractException | ||
13 | { | ||
14 | public static function new(string $param): self | ||
15 | { | ||
16 | return new self( | ||
17 | sprintf('Could not find parameter %s in the SQL statement', $param), | ||
18 | ); | ||
19 | } | ||
20 | } | ||