diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-18 00:08:23 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-18 00:10:03 +0200 |
| commit | 05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch) | |
| tree | cf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/dbal/src/Driver/Mysqli/Exception | |
| parent | 32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff) | |
| download | AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2 AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip | |
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Mysqli/Exception')
8 files changed, 0 insertions, 226 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionError.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionError.php deleted file mode 100644 index d2477fd..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionError.php +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | use mysqli; | ||
| 9 | use mysqli_sql_exception; | ||
| 10 | use ReflectionProperty; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * @internal | ||
| 14 | * | ||
| 15 | * @psalm-immutable | ||
| 16 | */ | ||
| 17 | final class ConnectionError extends AbstractException | ||
| 18 | { | ||
| 19 | public static function new(mysqli $connection): self | ||
| 20 | { | ||
| 21 | return new self($connection->error, $connection->sqlstate, $connection->errno); | ||
| 22 | } | ||
| 23 | |||
| 24 | public static function upcast(mysqli_sql_exception $exception): self | ||
| 25 | { | ||
| 26 | $p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate'); | ||
| 27 | |||
| 28 | return new self($exception->getMessage(), $p->getValue($exception), $exception->getCode(), $exception); | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionFailed.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionFailed.php deleted file mode 100644 index cb3bc64..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/ConnectionFailed.php +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | use mysqli; | ||
| 9 | use mysqli_sql_exception; | ||
| 10 | use ReflectionProperty; | ||
| 11 | |||
| 12 | use function assert; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @internal | ||
| 16 | * | ||
| 17 | * @psalm-immutable | ||
| 18 | */ | ||
| 19 | final class ConnectionFailed extends AbstractException | ||
| 20 | { | ||
| 21 | public static function new(mysqli $connection): self | ||
| 22 | { | ||
| 23 | $error = $connection->connect_error; | ||
| 24 | assert($error !== null); | ||
| 25 | |||
| 26 | return new self($error, 'HY000', $connection->connect_errno); | ||
| 27 | } | ||
| 28 | |||
| 29 | public static function upcast(mysqli_sql_exception $exception): self | ||
| 30 | { | ||
| 31 | $p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate'); | ||
| 32 | |||
| 33 | return new self($exception->getMessage(), $p->getValue($exception), $exception->getCode(), $exception); | ||
| 34 | } | ||
| 35 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/FailedReadingStreamOffset.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/FailedReadingStreamOffset.php deleted file mode 100644 index 6f26dbe..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/FailedReadingStreamOffset.php +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @internal | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | final class FailedReadingStreamOffset extends AbstractException | ||
| 17 | { | ||
| 18 | public static function new(int $parameter): self | ||
| 19 | { | ||
| 20 | return new self(sprintf('Failed reading the stream resource for parameter #%d.', $parameter)); | ||
| 21 | } | ||
| 22 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/HostRequired.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/HostRequired.php deleted file mode 100644 index d3359fc..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/HostRequired.php +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * @internal | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | final class HostRequired extends AbstractException | ||
| 15 | { | ||
| 16 | public static function forPersistentConnection(): self | ||
| 17 | { | ||
| 18 | return new self('The "host" parameter is required for a persistent connection'); | ||
| 19 | } | ||
| 20 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidCharset.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidCharset.php deleted file mode 100644 index 778ea64..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidCharset.php +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | use mysqli; | ||
| 9 | use mysqli_sql_exception; | ||
| 10 | use ReflectionProperty; | ||
| 11 | |||
| 12 | use function sprintf; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @internal | ||
| 16 | * | ||
| 17 | * @psalm-immutable | ||
| 18 | */ | ||
| 19 | final class InvalidCharset extends AbstractException | ||
| 20 | { | ||
| 21 | public static function fromCharset(mysqli $connection, string $charset): self | ||
| 22 | { | ||
| 23 | return new self( | ||
| 24 | sprintf('Failed to set charset "%s": %s', $charset, $connection->error), | ||
| 25 | $connection->sqlstate, | ||
| 26 | $connection->errno, | ||
| 27 | ); | ||
| 28 | } | ||
| 29 | |||
| 30 | public static function upcast(mysqli_sql_exception $exception, string $charset): self | ||
| 31 | { | ||
| 32 | $p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate'); | ||
| 33 | |||
| 34 | return new self( | ||
| 35 | sprintf('Failed to set charset "%s": %s', $charset, $exception->getMessage()), | ||
| 36 | $p->getValue($exception), | ||
| 37 | $exception->getCode(), | ||
| 38 | $exception, | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidOption.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidOption.php deleted file mode 100644 index 654bb87..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/InvalidOption.php +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @internal | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | final class InvalidOption extends AbstractException | ||
| 17 | { | ||
| 18 | public static function fromOption(int $option, mixed $value): self | ||
| 19 | { | ||
| 20 | return new self( | ||
| 21 | sprintf('Failed to set option %d with value "%s"', $option, $value), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/NonStreamResourceUsedAsLargeObject.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/NonStreamResourceUsedAsLargeObject.php deleted file mode 100644 index 566d636..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/NonStreamResourceUsedAsLargeObject.php +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @internal | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | final class NonStreamResourceUsedAsLargeObject extends AbstractException | ||
| 17 | { | ||
| 18 | public static function new(int $parameter): self | ||
| 19 | { | ||
| 20 | return new self( | ||
| 21 | sprintf('The resource passed as a LARGE_OBJECT parameter #%d must be of type "stream"', $parameter), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/StatementError.php b/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/StatementError.php deleted file mode 100644 index 991384c..0000000 --- a/vendor/doctrine/dbal/src/Driver/Mysqli/Exception/StatementError.php +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Mysqli\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\AbstractException; | ||
| 8 | use mysqli_sql_exception; | ||
| 9 | use mysqli_stmt; | ||
| 10 | use ReflectionProperty; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * @internal | ||
| 14 | * | ||
| 15 | * @psalm-immutable | ||
| 16 | */ | ||
| 17 | final class StatementError extends AbstractException | ||
| 18 | { | ||
| 19 | public static function new(mysqli_stmt $statement): self | ||
| 20 | { | ||
| 21 | return new self($statement->error, $statement->sqlstate, $statement->errno); | ||
| 22 | } | ||
| 23 | |||
| 24 | public static function upcast(mysqli_sql_exception $exception): self | ||
| 25 | { | ||
| 26 | $p = new ReflectionProperty(mysqli_sql_exception::class, 'sqlstate'); | ||
| 27 | |||
| 28 | return new self($exception->getMessage(), $p->getValue($exception), $exception->getCode(), $exception); | ||
| 29 | } | ||
| 30 | } | ||
