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, 0 insertions, 19 deletions
diff --git a/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php b/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php deleted file mode 100644 index 81ae215..0000000 --- a/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 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 | } | ||
