Skip to content

Commit 1b85d6f

Browse files
committed
[ci-review] Rector Rectify
1 parent 00d0e8b commit 1b85d6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rules/Privatization/TypeManipulator/TypeNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
public function __construct(
3333
private TypeFactory $typeFactory,
3434
private StaticTypeMapper $staticTypeMapper,
35-
private ArrayTypeLeastCommonDenominatorResolver $arrayTypeNormalizer
35+
private ArrayTypeLeastCommonDenominatorResolver $arrayTypeLeastCommonDenominatorResolver
3636
) {
3737

3838
}
@@ -159,7 +159,7 @@ private function narrowToAlwaysKnownArrayType(UnionType $unionType): ?ArrayType
159159
return null;
160160
}
161161

162-
$arrayUniqueKeyType = $this->arrayTypeNormalizer->sharedArrayStructure(...$unionType->getTypes());
162+
$arrayUniqueKeyType = $this->arrayTypeLeastCommonDenominatorResolver->sharedArrayStructure(...$unionType->getTypes());
163163
return new ArrayType($arrayUniqueKeyType, new MixedType());
164164
}
165165
}

0 commit comments

Comments
 (0)