diff --git a/src/Drivers/Exception/UnknownMysqlTimezone.php b/src/Drivers/Exception/UnknownMysqlTimezoneException.php similarity index 89% rename from src/Drivers/Exception/UnknownMysqlTimezone.php rename to src/Drivers/Exception/UnknownMysqlTimezoneException.php index 93c0dba..2ae8278 100644 --- a/src/Drivers/Exception/UnknownMysqlTimezone.php +++ b/src/Drivers/Exception/UnknownMysqlTimezoneException.php @@ -6,7 +6,7 @@ use Exception; -class UnknownMysqlTimezone extends QueryException +class UnknownMysqlTimezoneException extends QueryException { public function __construct( string $message, diff --git a/src/Drivers/Mysqli/MysqliDriver.php b/src/Drivers/Mysqli/MysqliDriver.php index b383191..b2eea6e 100644 --- a/src/Drivers/Mysqli/MysqliDriver.php +++ b/src/Drivers/Mysqli/MysqliDriver.php @@ -12,7 +12,7 @@ use Nextras\Dbal\Drivers\Exception\NotNullConstraintViolationException; use Nextras\Dbal\Drivers\Exception\QueryException; use Nextras\Dbal\Drivers\Exception\UniqueConstraintViolationException; -use Nextras\Dbal\Drivers\Exception\UnknownMysqlTimezone; +use Nextras\Dbal\Drivers\Exception\UnknownMysqlTimezoneException; use Nextras\Dbal\Drivers\IDriver; use Nextras\Dbal\Exception\InvalidStateException; use Nextras\Dbal\Exception\NotSupportedException; @@ -370,7 +370,7 @@ protected function createException(string $error, int $errorNo, string $sqlState } elseif (in_array($errorNo, [1048, 1121, 1138, 1171, 1252, 1263, 1566], true)) { return new NotNullConstraintViolationException($error, $errorNo, $sqlState, null, $query); } elseif ($errorNo === 1298) { - return new UnknownMysqlTimezone($error, $errorNo, $sqlState, null, $query); + return new UnknownMysqlTimezoneException($error, $errorNo, $sqlState, null, $query); } elseif ($query !== null) { return new QueryException($error, $errorNo, $sqlState, null, $query); } else { diff --git a/src/Drivers/PdoMysql/PdoMysqlDriver.php b/src/Drivers/PdoMysql/PdoMysqlDriver.php index 4c8675c..5ccc55d 100644 --- a/src/Drivers/PdoMysql/PdoMysqlDriver.php +++ b/src/Drivers/PdoMysql/PdoMysqlDriver.php @@ -11,7 +11,7 @@ use Nextras\Dbal\Drivers\Exception\NotNullConstraintViolationException; use Nextras\Dbal\Drivers\Exception\QueryException; use Nextras\Dbal\Drivers\Exception\UniqueConstraintViolationException; -use Nextras\Dbal\Drivers\Exception\UnknownMysqlTimezone; +use Nextras\Dbal\Drivers\Exception\UnknownMysqlTimezoneException; use Nextras\Dbal\Drivers\IDriver; use Nextras\Dbal\Drivers\Pdo\PdoDriver; use Nextras\Dbal\Exception\InvalidArgumentException; @@ -155,7 +155,7 @@ protected function createException(string $error, int $errorNo, string $sqlState } elseif (in_array($errorNo, [1048, 1121, 1138, 1171, 1252, 1263, 1566], true)) { return new NotNullConstraintViolationException($error, $errorNo, $sqlState, null, $query); } elseif ($errorNo === 1298) { - return new UnknownMysqlTimezone($error, $errorNo, $sqlState, null, $query); + return new UnknownMysqlTimezoneException($error, $errorNo, $sqlState, null, $query); } elseif ($query !== null) { return new QueryException($error, $errorNo, $sqlState, null, $query); } else {