diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/ArrayParameters/Exception/MissingPositionalParameter.php')
-rw-r--r-- | vendor/doctrine/dbal/src/ArrayParameters/Exception/MissingPositionalParameter.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/ArrayParameters/Exception/MissingPositionalParameter.php b/vendor/doctrine/dbal/src/ArrayParameters/Exception/MissingPositionalParameter.php new file mode 100644 index 0000000..91bdbe7 --- /dev/null +++ b/vendor/doctrine/dbal/src/ArrayParameters/Exception/MissingPositionalParameter.php | |||
@@ -0,0 +1,25 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\ArrayParameters\Exception; | ||
6 | |||
7 | use Doctrine\DBAL\ArrayParameters\Exception; | ||
8 | use LogicException; | ||
9 | |||
10 | use function sprintf; | ||
11 | |||
12 | /** | ||
13 | * @internal | ||
14 | * | ||
15 | * @psalm-immutable | ||
16 | */ | ||
17 | class MissingPositionalParameter extends LogicException implements Exception | ||
18 | { | ||
19 | public static function new(int $index): self | ||
20 | { | ||
21 | return new self( | ||
22 | sprintf('Positional parameter at index %d does not have a bound value.', $index), | ||
23 | ); | ||
24 | } | ||
25 | } | ||