summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/SQL/Parser/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/SQL/Parser/Exception')
-rw-r--r--vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php b/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php
new file mode 100644
index 0000000..81ae215
--- /dev/null
+++ b/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\SQL\Parser\Exception;
6
7use Doctrine\DBAL\SQL\Parser\Exception;
8use RuntimeException;
9
10use function preg_last_error;
11use function preg_last_error_msg;
12
13class RegularExpressionError extends RuntimeException implements Exception
14{
15 public static function new(): self
16 {
17 return new self(preg_last_error_msg(), preg_last_error());
18 }
19}