From 2df3f8808518c7e5f4a5d8212c7e31ba4c4f3a06 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 29 Feb 2024 23:06:09 -0600 Subject: [PATCH] Note thrown exception --- src/MysqlDataType.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MysqlDataType.php b/src/MysqlDataType.php index 6483c15..1c970b3 100644 --- a/src/MysqlDataType.php +++ b/src/MysqlDataType.php @@ -43,6 +43,8 @@ enum MysqlDataType: int * @see 14.7.3 Binary Protocol Value * * @param int<0, max> $offset + * + * @throws SqlException */ public function decodeBinary(string $bytes, int &$offset = 0, int $flags = 0): int|float|string|null { @@ -117,6 +119,8 @@ public function decodeBinary(string $bytes, int &$offset = 0, int $flags = 0): i /** * @param int<0, max> $offset + * + * @throws SqlException */ public function decodeText(string $bytes, int &$offset = 0, int $flags = 0): int|float|string { @@ -262,6 +266,8 @@ public static function decodeNullTerminatedString(string $bytes, int &$offset = /** * @param int<0, max> $offset + * + * @throws SqlException */ public static function decodeString(string $bytes, int &$offset = 0): string {