laminas / laminas-navigation

Manage trees of pointers to web pages in order to build navigation systems
https://docs.laminas.dev/laminas-navigation/
BSD 3-Clause "New" or "Revised" License
17 stars 11 forks source link

Fix `preparePages()`’s return type #24

Closed gszy closed 2 years ago

gszy commented 2 years ago

The method’s return type was set to null|array. preparePages() internally calls injectComponents() and returns the call’s result. injectComponents() always returns an array or throws an exception. Set the preparePages()’s return type to just array.

Q A
Documentation yes/no
Bugfix yes/no
BC Break yes/no
New Feature no
RFC no
QA no