Open
Description
Would it be reasonable to retrieve the local variables which are available in a reflection method?
e.g.
class Foobar
{
public function barfoo(NumberOne $one, NumberTwo $two)
{
$numberThree = 3;
}
}
$vars = $reflection->getMethod('barfoo')->getLocalVariables();
// [
// 'one' => Variable(type=NumberOne, declaredAt=2)
// 'two => Variable(type=NumberTwo, declaredAt=2)
// 'numberThree' => Variable(type=int, declaredAt=4
// ];