Closed
Description
The ContextFactory::createForNamespace()
wrongly detect use statements for class, f.e. if I have closure with use
statement it's detected as a use statement for trait, but shouldn't:
trait MyTrait
{
protected function check(array $data): void
{
$key = 'test';
array_walk($data, function (&$item) use ($key) {
// modify $item
});
}
}
Metadata
Metadata
Assignees
Labels
No labels