public static
getArrays(Type $type): ArrayType[]
Use PHPStan\Type\Type::getArrays() instead and handle optional ConstantArrayType keys if necessary.
getConstantArrays(Type $type): ConstantArrayType[]
Use PHPStan\Type\Type::getConstantArrays() instead and handle optional keys if necessary.
getConstantStrings(Type $type): ConstantStringType[]
Use PHPStan\Type\Type::getConstantStrings() instead
getConstantIntegers(Type $type): ConstantIntegerType[]
getConstantTypes(Type $type): ConstantType[]
Use Type::isConstantValue() or Type::generalize()
getAnyConstantTypes(Type $type): ConstantType[]
getAnyArrays(Type $type): ArrayType[]
Use PHPStan\Type\Type::getArrays() instead.
generalizeType(Type $type, GeneralizePrecision $precision): Type
Use PHPStan\Type\Type::generalize() instead.
getDirectClassNames(Type $type): list<string>
Use Type::getObjectClassNames() instead.
getIntegerRanges(Type $type): IntegerRangeType[]
getConstantScalars(Type $type): ConstantScalarType[]
Use Type::isConstantScalarValue() or Type::getConstantScalarTypes() or Type::getConstantScalarValues()
getEnumCaseObjects(Type $type): EnumCaseObjectType[]
Use Type::getEnumCases()
toBenevolentUnion(Type $type): Type
toStrictUnion(Type $type): ($type is UnionType?UnionType:Type)
flattenTypes(Type $type): Type[]
findThisType(Type $type): ?ThisType
getHasPropertyTypes(Type $type): HasPropertyType[]
getAccessoryTypes(Type $type): AccessoryType[]
containsCallable(Type $type): bool
Use PHPStan\Type\Type::isCallable() instead.
containsTemplateType(Type $type): bool
resolveLateResolvableTypes(Type $type, bool $resolveUnresolvableTypes = true): Type