Skip to content

Commit 24bce1d

Browse files
author
Coen Zimmerman
committed
Fixed docblock for join list
1 parent 1a2b2dc commit 24bce1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Filter.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Czim\Filter;
66

7+
use Closure;
78
use Czim\Filter\Contracts\FilterDataInterface;
89
use Czim\Filter\Contracts\FilterInterface;
910
use Czim\Filter\Contracts\ParameterFilterInterface;
@@ -66,7 +67,7 @@ class Filter implements FilterInterface
6667
* Join memory: set join parameters for query->join() calls here, so they may be applied once and
6768
* without unnecessary or problematic duplication.
6869
*
69-
* @var array<string, array<int, string>> keyed by identifying string/name
70+
* @var array<string, array<int, string|Closure>> keyed by identifying string/name
7071
*/
7172
protected array $joins = [];
7273

@@ -304,9 +305,9 @@ protected function forgetJoins(): void
304305
/**
305306
* Adds a query join to be added after all parameters are applied.
306307
*
307-
* @param string $key identifying key, used to prevent duplicates
308-
* @param array<int, string> $parameters
309-
* @param string|null $joinType {@link JoinType} 'join'/'inner', 'right'; defaults to left join
308+
* @param string $key identifying key, used to prevent duplicates
309+
* @param array<int, string|Closure> $parameters [...string] or [string, Closure]
310+
* @param string|null $joinType {@link JoinType} 'join'/'inner', 'right'; defaults to left join
310311
*/
311312
public function addJoin(string $key, array $parameters, ?string $joinType = null): void
312313
{

0 commit comments

Comments
 (0)