implements
ConstantScalarType
uses
NonCallableTypeTrait, NonIterableTypeTrait, NonObjectTypeTrait, FalseyBooleanTypeTrait, NonGenericTypeTrait, NonRemoveableTypeTrait
public
__construct()
getReferencedClasses(): string[]
PHPStan\Type\Type::getReferencedClasses()
getValue(): null
PHPStan\Type\ConstantScalarType::getValue()
generalize(GeneralizePrecision $precision): Type
PHPStan\Type\Type::generalize()
accepts(Type $type, bool $strictTypes): TrinaryLogic
PHPStan\Type\Type::accepts()
isSuperTypeOf(Type $type): TrinaryLogic
PHPStan\Type\Type::isSuperTypeOf()
equals(Type $type): bool
PHPStan\Type\Type::equals()
isSmallerThan(Type $otherType): TrinaryLogic
PHPStan\Type\Type::isSmallerThan()
isSmallerThanOrEqual(Type $otherType): TrinaryLogic
PHPStan\Type\Type::isSmallerThanOrEqual()
describe(VerbosityLevel $level): string
PHPStan\Type\Type::describe()
toNumber(): Type
PHPStan\Type\Type::toNumber()
toString(): Type
PHPStan\Type\Type::toString()
toInteger(): Type
PHPStan\Type\Type::toInteger()
toFloat(): Type
PHPStan\Type\Type::toFloat()
toArray(): Type
PHPStan\Type\Type::toArray()
isOffsetAccessible(): TrinaryLogic
PHPStan\Type\Type::isOffsetAccessible()
hasOffsetValueType(Type $offsetType): TrinaryLogic
PHPStan\Type\Type::hasOffsetValueType()
getOffsetValueType(Type $offsetType): Type
PHPStan\Type\Type::getOffsetValueType()
setOffsetValueType(?Type $offsetType, Type $valueType, bool $unionValues = true): Type
PHPStan\Type\Type::setOffsetValueType()
unsetOffset(Type $offsetType): Type
PHPStan\Type\Type::unsetOffset()
traverse(callable $cb): Type
Traverses inner types
Returns a new instance with all inner types mapped through $cb. Might return the same instance if inner types did not change.
PHPStan\Type\Type::traverse()
isArray(): TrinaryLogic
PHPStan\Type\Type::isArray()
isOversizedArray(): TrinaryLogic
PHPStan\Type\Type::isOversizedArray()
isString(): TrinaryLogic
PHPStan\Type\Type::isString()
isNumericString(): TrinaryLogic
PHPStan\Type\Type::isNumericString()
isNonEmptyString(): TrinaryLogic
PHPStan\Type\Type::isNonEmptyString()
isNonFalsyString(): TrinaryLogic
PHPStan\Type\Type::isNonFalsyString()
isLiteralString(): TrinaryLogic
PHPStan\Type\Type::isLiteralString()
getSmallerType(): Type
PHPStan\Type\Type::getSmallerType()
getSmallerOrEqualType(): Type
PHPStan\Type\Type::getSmallerOrEqualType()
getGreaterType(): Type
PHPStan\Type\Type::getGreaterType()
getGreaterOrEqualType(): Type
PHPStan\Type\Type::getGreaterOrEqualType()
public static
__set_state(mixed[] $properties): Type
PHPStan\Type\Type::__set_state()