Skip to content
Snippets Groups Projects
Commit 2bb3b83e authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #549 from EreMaijala/yaml

Pass file contents to Yaml::parse() since passing a file name is depr…
parents 1ca87e9c c308fcc3
No related merge requests found
......@@ -92,9 +92,10 @@ class SearchSpecsReader
// Generate data if not found in cache:
if ($cache === false || !($results = $cache->getItem($cacheKey))) {
$results = file_exists($fullpath) ? Yaml::parse($fullpath) : [];
$results = file_exists($fullpath)
? Yaml::parse(file_get_contents($fullpath)) : [];
if (!empty($local)) {
$localResults = Yaml::parse($local);
$localResults = Yaml::parse(file_get_contents($local));
foreach ($localResults as $key => $value) {
$results[$key] = $value;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment