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