Open
Description
component-model 3.1.0 returns array Container::getComponents()
when $deep === false
:
instead of Iterator
:
phpstan-nette/stubs/ComponentModel/Container.stub
Lines 11 to 13 in 8af9474
The return type should be something like
@phpstan-return (
$deep is true
? ($filterType is null ? array<int|string, \Nette\ComponentModel\IComponent> : array<int|string, T>)
: ($filterType is null ? \Iterator<int|string, \Nette\ComponentModel\IComponent> : \Iterator<int|string, T>)
)
I can open a PR but not sure what to do about older versions. Should I just add conflict with < 3.1.0
?
Metadata
Metadata
Assignees
Labels
No labels