Copied!

Transforms a php doc tag value to a {@link Type} instance.

CloneableFinalInstantiable
Methods
public getTypes(PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode $node, Symfony\Component\PropertyInfo\PhpStan\NameScope $nameScope) : array
 

Creates a {@see Type} from a PhpDocTagValueNode type.

  • return \Type[]
Methods
private compressNullableType(array $types) : array
 

Because PhpStan extract null as a separated type when Symfony / PHP compress it in the first available type we need this method to mimic how Symfony want null types.

  • param \Type[] $types
  • return \Type[]
private extractTypes(PHPStan\PhpDocParser\Ast\Type\TypeNode $node, Symfony\Component\PropertyInfo\PhpStan\NameScope $nameScope) : array
 
  • return \Type[]
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration