MCPcopy Create free account
hub / github.com/VKCOM/kphp / find_first_phpdoc_for_var

Function find_first_phpdoc_for_var

compiler/generics-reification.cpp:66–90  ·  view source on GitHub ↗

assumptions for vars aren't saved unless they contain instances (neither for parameters, nor for local vars) i.e. even if you write `@var int|false $a`, it won't be saved as an assumption, and `return $a` will assume unknown for generics instantiating, like calls `f($a)` we intentionally search for @var even with primitives

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

varMethod · 0.45

Tested by

no test coverage detected