Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 325 Bytes

TooManyTemplateParams.md

File metadata and controls

18 lines (15 loc) · 325 Bytes

TooManyTemplateParams

Emitted when using the @extends/@implements annotation to extend a class and adds too many types.

<?php

/**
 * @template-implements IteratorAggregate<int, string, int>
 */
class SomeIterator implements IteratorAggregate
{
    public function getIterator() {
        yield 5;
    }
}