Skip to content

Throw exception when loading data from file failed #73

@arogachev

Description

@arogachev

Currently the empty array is returned:

protected function loadFromFile(string $file): array
{
if (is_file($file)) {
/**
* @psalm-suppress UnresolvableInclude
*/
return require $file;
}
return [];
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions