Skip to content

CachedAspectLoader::load() does not comply with \Go\Core\AspectLoader::load() signature #471

Open
@func0der

Description

@func0der

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions