Skip to content

Commit

Permalink
Merge pull request #707 from crhg/fix_getAliases
Browse files Browse the repository at this point in the history
Fix alias class existence determination #698
  • Loading branch information
barryvdh authored Oct 6, 2018
2 parents 8174730 + 30e5300 commit 981ff45
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,13 @@ protected function getAliases()
$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
);
}

/**
Expand Down

1 comment on commit 981ff45

@mikepsinn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.