Skip to content

Commit

Permalink
Merge pull request #28098 from themsaid/pr/23982
Browse files Browse the repository at this point in the history
[5.8] Exclude non-existing directories from event discovery
  • Loading branch information
taylorotwell authored Apr 3, 2019
2 parents 6a5357a + 0915497 commit dd725e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public function shouldDiscoverEvents()
public function discoverEvents()
{
return collect($this->discoverEventsWithin())
->reject(function ($directory) {
return ! is_dir($directory);
})
->reduce(function ($discovered, $directory) {
return array_merge_recursive(
$discovered,
Expand Down

0 comments on commit dd725e8

Please sign in to comment.