Closed gszy closed 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.
null|array
preparePages()
injectComponents()
array
The method’s return type was set to
null|array
.preparePages()
internally callsinjectComponents()
and returns the call’s result.injectComponents()
always returns an array or throws an exception. Set thepreparePages()
’s return type to justarray
.