From 30e5300e49f1452d1d7d1b827453e215bea902f8 Mon Sep 17 00:00:00 2001 From: Manabu Matsui Date: Fri, 14 Sep 2018 10:16:13 +0900 Subject: [PATCH] Fix alias class existence determination --- src/Generator.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index 2c7f2d1..f497b6b 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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 class_exists($alias); - }); + return array_filter( + $facades, + function ($alias) { + return class_exists($alias); + }, + ARRAY_FILTER_USE_KEY + ); } /**