Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
}