if (!\
in_array($prefix,
$this->arrayMutatorPrefixes, true
)) { return $types;
} return [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true,
new Type(Type::BUILTIN_TYPE_INT
),
$types[0
])];
} public function getTypesFromConstructor(string
$class, string
$property): ?array
{ if (null ===
$tagDocNode =
$this->
getDocBlockFromConstructor($class,
$property)) { return null;
} $types =
[];
foreach ($this->phpStanTypeHelper->
getTypes($tagDocNode,
$this->nameScopeFactory->
create($class)) as $type) { $types[] =
$type;
} if (!
isset($types[0
])) { return null;
}