<?php
namespace A {
class T {}
}
namespace {
$hello = 42;
class Test
{
public function first(string $str): Closure
{
return function() use ($str):int {
return strlen($str);
};
}
public function second(int $i): int
{
}
}
$t = new Test;
echo ($t->first("hello"))();
}