Skip to content

Commit

Permalink
Merge pull request #14 from stellarwp/bugfix/exception-array-shape
Browse files Browse the repository at this point in the history
Fix array shape for errors in DatabaseQueryException
  • Loading branch information
defunctl authored Sep 8, 2023
2 parents 2ec62c6 + 961d4e7 commit c2f929a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DB/Database/Exceptions/DatabaseQueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class DatabaseQueryException extends \Exception {
/**
* @var string[]
* @var array<string, string[]>
*/
private $queryErrors;

Expand All @@ -25,6 +25,8 @@ class DatabaseQueryException extends \Exception {

/**
* @since 1.0.0
*
* @param array<string, string[]> $queryErrors
*/
public function __construct(
string $query,
Expand All @@ -44,7 +46,7 @@ public function __construct(
*
* @since 1.0.0
*
* @return string[]
* @return array<string, string[]>
*/
public function getQueryErrors(): array {
return $this->queryErrors;
Expand Down

0 comments on commit c2f929a

Please sign in to comment.