blob: 81ae21573b98b8cbdd1c7f27fa428efc921bd67e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\SQL\Parser\Exception;
use Doctrine\DBAL\SQL\Parser\Exception;
use RuntimeException;
use function preg_last_error;
use function preg_last_error_msg;
class RegularExpressionError extends RuntimeException implements Exception
{
public static function new(): self
{
return new self(preg_last_error_msg(), preg_last_error());
}
}
|