laminas / laminas-view

Flexible view layer supporting and providing multiple view layers, helpers, and more
https://docs.laminas.dev/laminas-view/
BSD 3-Clause "New" or "Revised" License
74 stars 46 forks source link

Add return type hint to ViewModel::getIterator() #220

Closed func0der closed 1 year ago

func0der commented 1 year ago

This is to satisfy static code analytic tools like PHPStan and Psalm.

Resolves #73 and also helps with #56

gsteel commented 1 year ago

I should also mention that to keep psalm happy here, you'll need to annotate $this->children as list<ModelInterface>

func0der commented 1 year ago

:roll_eyes: Github interface confused me with the branches xD

I hope I got everything the way you wanted it to be, @gsteel ?