Namespace PHPStan\Type

Classes
AcceptsResult
ArrayType
BenevolentUnionType
BooleanType
CallableType
CircularTypeAliasErrorType
ClassStringType
ClosureType
ClosureTypeFactory
ConditionalType
ConditionalTypeForParameter
ConstantTypeHelper
ErrorType
FileTypeMapper
FloatType
GeneralizePrecision
IntegerRangeType
IntegerType
IntersectionType
IsSuperTypeOfResult
IterableType
KeyOfType
MixedType
NeverType
NewObjectType
NonAcceptingNeverType
NullType
ObjectShapeType
ObjectType
ObjectWithoutClassType
OffsetAccessType
ResourceType
SimultaneousTypeTraverser
StaticType
StringType
ThisType
TypeCombinator
TypehintHelper
TypeTraverser
TypeUtils
UnionType
ValueOfType
VerbosityLevel
VoidType
Interfaces
CompoundType
ConstantScalarType
DynamicFunctionReturnTypeExtension

This is the interface dynamic return type extensions implement for functions. To register it in the configuration file use the phpstan.broker.dynamicFunctionReturnTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.dynamicFunctionReturnTypeExtension

DynamicFunctionThrowTypeExtension

This is the interface dynamic throw type extensions implement for functions. To register it in the configuration file use the phpstan.dynamicFunctionThrowTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.dynamicFunctionThrowTypeExtension

DynamicMethodReturnTypeExtension

This is the interface dynamic return type extensions implement for non-static methods. To register it in the configuration file use the phpstan.broker.dynamicMethodReturnTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.dynamicMethodReturnTypeExtension

DynamicMethodThrowTypeExtension

This is the interface dynamic throw type extensions implement for non-static methods. To register it in the configuration file use the phpstan.dynamicMethodThrowTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.dynamicMethodThrowTypeExtension

DynamicStaticMethodReturnTypeExtension

This is the interface dynamic return type extensions implement for static methods. To register it in the configuration file use the phpstan.broker.dynamicStaticMethodReturnTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.dynamicStaticMethodReturnTypeExtension

DynamicStaticMethodThrowTypeExtension

This is the interface dynamic throw type extensions implement for static methods. To register it in the configuration file use the phpstan.dynamicStaticMethodThrowTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.dynamicStaticMethodThrowTypeExtension

ExpressionTypeResolverExtension

To register it in the configuration file use the phpstan.broker.expressionTypeResolverExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.expressionTypeResolverExtension

FunctionParameterClosureTypeExtension

This is the interface for parameter closure type extensions for functions. To register it in the configuration file use the phpstan.functionParameterClosureTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.functionParameterClosureTypeExtension

FunctionParameterOutTypeExtension

This is the interface dynamic parameter out type extensions implement for functions. To register it in the configuration file use the phpstan.functionParameterOutTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.functionParameterOutTypeExtension

FunctionTypeSpecifyingExtension

This is the interface type-specifying extensions implement for functions. To register it in the configuration file use the phpstan.typeSpecifier.functionTypeSpecifyingExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.typeSpecifier.functionTypeSpecifyingExtension

LateResolvableType
MethodParameterClosureTypeExtension

This is the interface for parameter closure type extensions for methods. To register it in the configuration file use the phpstan.methodParameterClosureTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.methodParameterClosureTypeExtension

MethodParameterOutTypeExtension

This is the interface dynamic parameter out type extensions implement for non-static methods. To register it in the configuration file use the phpstan.methodParameterOutTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.methodParameterOutTypeExtension

MethodTypeSpecifyingExtension

This is the interface type-specifying extensions implement for non-static methods. To register it in the configuration file use the phpstan.typeSpecifier.methodTypeSpecifyingExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.typeSpecifier.methodTypeSpecifyingExtension

OperatorTypeSpecifyingExtension

This is the extension interface to implement if you want to describe how arithmetic operators like +, -, *, ^, / should infer types for PHP extensions that overload the behaviour, like GMP. To register it in the configuration file use the phpstan.broker.operatorTypeSpecifyingExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.operatorTypeSpecifyingExtension

StaticMethodParameterClosureTypeExtension

This is the interface for parameter closure type extensions for static methods. To register it in the configuration file use the phpstan.staticMethodParameterClosureTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.staticMethodParameterClosureTypeExtension

StaticMethodParameterOutTypeExtension

This is the interface dynamic parameter out type extensions implement for static methods. To register it in the configuration file use the phpstan.staticMethodParameterOutTypeExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.staticMethodParameterOutTypeExtension

StaticMethodTypeSpecifyingExtension

This is the interface type-specifying extensions implement for static methods. To register it in the configuration file use the phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension

Type
TypeWithClassName
Namespaces
PHPStan\Type\Accessory
PHPStan\Type\Constant
PHPStan\Type\Enum
PHPStan\Type\Generic
PHPStan\Type\Helper
PHPStan\Type\Php