From d6a619eb029b917350ed848c003dbdaeb5046251 Mon Sep 17 00:00:00 2001 From: Miguel Muscat Date: Fri, 12 Apr 2024 15:25:35 +0200 Subject: [PATCH] refactor: better type hints --- src/Query/InsertQuery.php | 4 ++-- src/Query/Traits/HasAssignmentTrait.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Query/InsertQuery.php b/src/Query/InsertQuery.php index dedc14d..5be10a7 100644 --- a/src/Query/InsertQuery.php +++ b/src/Query/InsertQuery.php @@ -28,8 +28,8 @@ class InsertQuery extends Query * @param DatabaseAdapter|null $adapter Optional database adapter. * @param string $into The table to insert into. * @param string[] $columns The columns to insert into. - * @param array[] $values A list of associative arrays, each representing a row to be inserted. - * @param array $assign Optional assignment list to use in the "ON DUPLICATE KEY" clause. + * @param list> $values A list of associative arrays, each representing a row to be inserted. + * @param array $assign Optional assignment list to use in the "ON DUPLICATE KEY" clause. */ public function __construct( ?DatabaseAdapter $adapter = null, diff --git a/src/Query/Traits/HasAssignmentTrait.php b/src/Query/Traits/HasAssignmentTrait.php index ea9372c..e4a2f33 100644 --- a/src/Query/Traits/HasAssignmentTrait.php +++ b/src/Query/Traits/HasAssignmentTrait.php @@ -7,7 +7,7 @@ trait HasAssignmentTrait { - /** @var array */ + /** @var array */ protected array $assign; /**