Copied!

Creates a type resolving context.

CloneableFinalInstantiable
Methods
public __construct(?Symfony\Component\TypeInfo\TypeResolver\StringTypeResolver $stringTypeResolver = NULL)
public createFromClassName(string $calledClassName, ?string $declaringClassName = NULL) : Symfony\Component\TypeInfo\TypeContext\TypeContext
public createFromReflection(Reflector $reflection) : ?Symfony\Component\TypeInfo\TypeContext\TypeContext
Properties
private ?PHPStan\PhpDocParser\Lexer\Lexer $phpstanLexer = NULL
private ?PHPStan\PhpDocParser\Parser\PhpDocParser $phpstanParser = NULL
private static array $reflectionClassCache = []
 
  • var array<class-string,\ReflectionClass>
private readonly ?Symfony\Component\TypeInfo\TypeResolver\StringTypeResolver $stringTypeResolver
Methods
private collectTemplates(ReflectionClass|ReflectionFunctionAbstract $reflection, Symfony\Component\TypeInfo\TypeContext\TypeContext $typeContext) : array
 
  • return array<string,\Type>
private collectUses(ReflectionClass $reflection) : array
 
  • return array<string,string>
Properties
private static array $reflectionClassCache = []
 
  • var array<class-string,\ReflectionClass>
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration