Hi @JakubMisek,
Just found an issue related to the generics and templates:
<?php
declare(strict_types=1);
namespace Devsense\Builtin\Iterator;
use ArrayIterator;
use IteratorAggregate;
use stdClass;
/**
* @template T
* @extends IteratorAggregate<T>
*/
interface MyInterface extends IteratorAggregate {}
/**
* @implements MyInterface<stdClass>
*/
final class MyClass implements MyInterface
{
public function getIterator(): ArrayIterator
{
return new ArrayIterator();
}
}

Thank you for the fix.