Skip to content

Commit

Permalink
Note thrown exception
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 1, 2024
1 parent 4852479 commit 2df3f88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MysqlDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 2df3f88

Please sign in to comment.