diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/SQL/Parser/Exception')
| -rw-r--r-- | vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php | 19 |
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 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\SQL\Parser\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\SQL\Parser\Exception; | ||
| 8 | use RuntimeException; | ||
| 9 | |||
| 10 | use function preg_last_error; | ||
| 11 | use function preg_last_error_msg; | ||
| 12 | |||
| 13 | class 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 | } | ||
