File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
contracts/Persistence/Content/Type
lib/Persistence/Legacy/Content/Type/Gateway/CriterionVisitor Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 18
18
interface CriterionHandlerInterface
19
19
{
20
20
/**
21
- * @param TCriterion $criterion
21
+ * @phpstan- param TCriterion $criterion
22
22
*/
23
23
public function supports (CriterionInterface $ criterion ): bool ;
24
24
25
25
/**
26
- * @param TCriterion $criterion
26
+ * @phpstan- param TCriterion $criterion
27
27
*
28
28
* @return string|\Doctrine\DBAL\Query\Expression\CompositeExpression
29
29
*/
Original file line number Diff line number Diff line change 11
11
use Doctrine \DBAL \Query \QueryBuilder ;
12
12
use Ibexa \Contracts \Core \Repository \Exceptions \NotImplementedException ;
13
13
use Ibexa \Contracts \Core \Repository \Values \ContentType \Query \CriterionInterface ;
14
- use function Ibexa \PolyfillPhp82 \iterator_to_array ;
15
14
16
15
final class CriterionVisitor
17
16
{
18
17
/**
19
- * @var array<int, \Ibexa\Contracts\Core\Persistence\Content\Type\CriterionHandlerInterface<\Ibexa\Contracts\Core\Repository\Values\ContentType\Query\CriterionInterface>>
18
+ * @var iterable< \Ibexa\Contracts\Core\Persistence\Content\Type\CriterionHandlerInterface<\Ibexa\Contracts\Core\Repository\Values\ContentType\Query\CriterionInterface>>
20
19
*/
21
- private array $ criterionHandlers ;
20
+ private iterable $ criterionHandlers ;
22
21
23
22
/**
24
23
* @param iterable<\Ibexa\Contracts\Core\Persistence\Content\Type\CriterionHandlerInterface<\Ibexa\Contracts\Core\Repository\Values\ContentType\Query\CriterionInterface>> $criterionHandlers
25
24
*/
26
25
public function __construct (iterable $ criterionHandlers )
27
26
{
28
- $ this ->criterionHandlers = iterator_to_array ( $ criterionHandlers) ;
27
+ $ this ->criterionHandlers = $ criterionHandlers ;
29
28
}
30
29
31
30
/**
You can’t perform that action at this time.
0 commit comments