Fixed PhpStan error

This commit is contained in:
Alejandro Celaya 2018-01-07 20:46:28 +01:00
parent 84094a51a2
commit 6f7ce709ca

View file

@ -12,9 +12,9 @@ class ConfigProvider
public function __invoke()
{
return $this->applyRoutesPrefix(
Factory::fromFiles(Glob::glob(__DIR__ . '/../config/{,*.}config.php', Glob::GLOB_BRACE))
);
/** @var array $config */
$config = Factory::fromFiles(Glob::glob(__DIR__ . '/../config/{,*.}config.php', Glob::GLOB_BRACE));
return $this->applyRoutesPrefix($config);
}
private function applyRoutesPrefix(array $config): array