The method called in
|
$loadedItems = $this->loadFromCache($fileName); |
can result in
false, which is then returned.
\Go\Core\AspectLoader::load() and their respective implementations are not supposed to return false, but only arrays.
Simple fix is to not just put the return value in $loadedItems.
An idea to prevent such problems in the future could be static code analysis.