Skip to content

Commit

Permalink
refactor: better type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
mecha committed Apr 12, 2024
1 parent d1805cc commit d6a619e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Query/InsertQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string,mixed>[] $values A list of associative arrays, each representing a row to be inserted.
* @param array<string, mixed> $assign Optional assignment list to use in the "ON DUPLICATE KEY" clause.
* @param list<array<string,mixed>> $values A list of associative arrays, each representing a row to be inserted.
* @param array<string,mixed> $assign Optional assignment list to use in the "ON DUPLICATE KEY" clause.
*/
public function __construct(
?DatabaseAdapter $adapter = null,
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Traits/HasAssignmentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait HasAssignmentTrait
{
/** @var array<string,scalar|ExprInterface> */
/** @var array<string,mixed> */
protected array $assign;

/**
Expand Down

0 comments on commit d6a619e

Please sign in to comment.