PHP Class Phan\Analysis\ArgumentType

Show file Open project: etsy/phan Class Usage Examples

Public Methods

Method Description
analyze ( Phan\Language\Element\FunctionInterface $method, ast\Node $node, Context $context, CodeBase $code_base ) : null

Private Methods

Method Description
analyzeInternalArgumentType ( Phan\Language\Element\FunctionInterface $method, ast\Node $node, Context $context, CodeBase $code_base ) : boolean Check to see if the given Clazz is a duplicate
analyzeNodeUnionTypeCast ( ast\Node | null | string | integer $node, Context $context, CodeBase $code_base, UnionType $cast_type, Closure $issue_instance ) : boolean Emit a log message if the type of the given node cannot be cast to the given type
analyzeParameterList ( CodeBase $code_base, Phan\Language\Element\FunctionInterface $method, ast\Node $node, Context $context ) : null

Method Details

analyze() public static method

See also: Phan\Deprecated\Pass2::arg_check Formerly `function arg_check`
public static analyze ( Phan\Language\Element\FunctionInterface $method, ast\Node $node, Context $context, CodeBase $code_base ) : null
$method Phan\Language\Element\FunctionInterface The method we're analyzing arguments for
$node ast\Node The node holding the method call we're looking at
$context Phan\Language\Context The context in which we see the call
$code_base Phan\CodeBase The global code base
return null