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.
The method called in
framework/src/Core/CachedAspectLoader.php
Line 66 in 596fcae
can result in
false, which is then returned.\Go\Core\AspectLoader::load()and their respective implementations are not supposed to returnfalse, but onlyarrays.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.