Skip to content

Commit 798fa23

Browse files
committed
fix: cleanup
1 parent 1ee1a79 commit 798fa23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Type/Php/PregSplitDynamicReturnTypeExtension.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
use PhpParser\Node\Expr\FuncCall;
88
use PHPStan\Analyser\Scope;
99
use PHPStan\Reflection\FunctionReflection;
10-
use PHPStan\TrinaryLogic;
1110
use PHPStan\Type\Accessory\AccessoryArrayListType;
1211
use PHPStan\Type\Accessory\AccessoryNonEmptyStringType;
1312
use PHPStan\Type\Accessory\NonEmptyArrayType;
1413
use PHPStan\Type\ArrayType;
1514
use PHPStan\Type\BitwiseFlagHelper;
16-
use PHPStan\Type\Constant\ConstantArrayType;
1715
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
1816
use PHPStan\Type\Constant\ConstantBooleanType;
1917
use PHPStan\Type\Constant\ConstantIntegerType;
@@ -117,11 +115,11 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
117115
$arrayTypeBuilder = ConstantArrayTypeBuilder::createEmpty();
118116
$arrayTypeBuilder->setOffsetValueType(
119117
new ConstantIntegerType(0),
120-
$returnStringType
118+
$returnStringType,
121119
);
122120
$arrayTypeBuilder->setOffsetValueType(
123121
new ConstantIntegerType(1),
124-
IntegerRangeType::fromInterval(0, null)
122+
IntegerRangeType::fromInterval(0, null),
125123
);
126124
$capturedArrayType = $arrayTypeBuilder->getArray();
127125

0 commit comments

Comments
 (0)