File tree Expand file tree Collapse file tree
rules/Privatization/TypeManipulator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments