// test: IteratorAggregate with value type resolves value in foreach
// feature: completion
// Adapted from phpactor generics/iterator_aggregate1.test
// expect: execute(
---
<?php
class Command {
public function execute(): void {}
}
/**
* @implements IteratorAggregate<Command>
*/
class CommandQueue implements IteratorAggregate {
}
$foo = new CommandQueue();
foreach ($foo as $bar) {
$bar-><>
}