Skip to content

Commit 91377ed

Browse files
VincentLangletondrejmirtes
authored andcommitted
Fix
1 parent 93c2f7f commit 91377ed

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

phpstan-baseline.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,13 +1746,13 @@ parameters:
17461746
-
17471747
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantArrayType is error-prone and deprecated. Use Type::getConstantArrays() instead.'
17481748
identifier: phpstanApi.instanceofType
1749-
count: 2
1749+
count: 1
17501750
path: src/Type/TypeUtils.php
17511751

17521752
-
17531753
rawMessage: Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
17541754
identifier: phpstanApi.instanceofType
1755-
count: 3
1755+
count: 4
17561756
path: src/Type/TypeUtils.php
17571757

17581758
-

src/Internal/CombinationsHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
namespace PHPStan\Internal;
44

55
use function array_pop;
6+
use Traversable;
67

78
final class CombinationsHelper
89
{
910

1011
/**
1112
* @param array<iterable<mixed>> $arrays
12-
* @return iterable<list<mixed>>
13+
* @return Traversable<list<mixed>>
1314
*/
1415
public static function combinations(array $arrays): iterable
1516
{

src/Type/TypeUtils.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use PHPStan\Type\Generic\TemplateBenevolentUnionType;
1111
use PHPStan\Type\Generic\TemplateType;
1212
use PHPStan\Type\Generic\TemplateUnionType;
13+
use function array_filter;
14+
use function array_map;
1315
use function array_merge;
16+
use function iterator_to_array;
1417

1518
/**
1619
* @api

0 commit comments

Comments
 (0)