diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/OCI8/Exception/NonTerminatedStringLiteral.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/OCI8/Exception/NonTerminatedStringLiteral.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/OCI8/Exception/NonTerminatedStringLiteral.php b/vendor/doctrine/dbal/src/Driver/OCI8/Exception/NonTerminatedStringLiteral.php new file mode 100644 index 0000000..776728f --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/OCI8/Exception/NonTerminatedStringLiteral.php | |||
| @@ -0,0 +1,27 @@ | |||
| 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 NonTerminatedStringLiteral extends AbstractException | ||
| 17 | { | ||
| 18 | public static function new(int $offset): self | ||
| 19 | { | ||
| 20 | return new self( | ||
| 21 | sprintf( | ||
| 22 | 'The statement contains non-terminated string literal starting at offset %d.', | ||
| 23 | $offset, | ||
| 24 | ), | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | } | ||
