Skip to content

Throw exception when loading data from file failed #73

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 [];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions