Skip to content

Commit 8e95943

Browse files
Where: Define explicite param types instead of mixed
1 parent 3b52357 commit 8e95943

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Where.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ protected function buildCondition(string|array|ExpressionInterface|Select $condi
8282
/**
8383
* Merge the given condition with ours via the given operator
8484
*
85-
* @param mixed $base Our condition
85+
* @param ?array $base Our condition
8686
* @param array $condition As returned by {@link buildCondition()}
8787
* @param string $operator
8888
*/
89-
protected function mergeCondition(mixed &$base, array $condition, string $operator): void
89+
protected function mergeCondition(?array &$base, array $condition, string $operator): void
9090
{
9191
if ($base === null) {
9292
$base = [$operator, [$condition]];
@@ -106,12 +106,12 @@ protected function mergeCondition(mixed &$base, array $condition, string $operat
106106
/**
107107
* Prepare condition arguments from the different supported where styles
108108
*
109-
* @param mixed $condition
109+
* @param string|array|ExpressionInterface|Select $condition
110110
* @param array $args
111111
*
112112
* @return array
113113
*/
114-
protected function prepareConditionArguments(mixed $condition, array $args): array
114+
protected function prepareConditionArguments(string|array|ExpressionInterface|Select $condition, array $args): array
115115
{
116116
// Default operator
117117
$operator = Sql::ALL;

0 commit comments

Comments
 (0)