Merge pull request #707 from crhg/fix_getAliases

Fix alias class existence determination #698
This commit is contained in:
Barry vd. Heuvel
2018-10-06 11:35:51 +02:00
committed by GitHub
+6 -2
View File
@@ -272,9 +272,13 @@ class Generator
$facades = array_merge($facades, $this->config->get('app.aliases', []));
// Only return the ones that actually exist
return array_filter($facades, function ($alias) {
return array_filter(
$facades,
function ($alias) {
return class_exists($alias);
});
},
ARRAY_FILTER_USE_KEY
);
}
/**