Fix alias class existence determination

This commit is contained in:
Manabu Matsui
2018-09-14 10:16:13 +09:00
parent 593e0d4aa7
commit 30e5300e49
+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
);
}
/**