Skip to content

Commit

Permalink
FIx call order
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed May 19, 2023
1 parent 143c49d commit 2bcb0ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Support/AutoDiscoveryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public function routeFileFinder(): FinderCollection
return FinderCollection::forFiles()
->depth(0)
->name('*.php')
->inOrEmpty($this->base_path.'/*/routes')
->sortByName();
->sortByName()
->inOrEmpty($this->base_path.'/*/routes');
}

public function viewDirectoryFinder(): FinderCollection
Expand Down
2 changes: 1 addition & 1 deletion src/Support/FinderCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function inOrEmpty(string|array $dirs): static
try {
return $this->in($dirs);
} catch (DirectoryNotFoundException) {
return FinderCollection::empty();
return static::empty();
}
}

Expand Down

0 comments on commit 2bcb0ee

Please sign in to comment.