Skip to content

Commit

Permalink
Revert "Handle side effect in v1 branch"
Browse files Browse the repository at this point in the history
This reverts commit fcad720.
  • Loading branch information
caendesilva committed Dec 14, 2024
1 parent fcad720 commit 481bb9f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/framework/src/Support/DataCollections.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ public static function json(string $name, bool $asArray = false): static

protected static function findFiles(string $name, array|string $extensions): Collection
{
if (! Filesystem::exists(path_join(static::$sourceDirectory, $name))) {
// To maintain compatability in the v1 branch, we return an empty collection if the directory does not exist.
// In v2.0, this will throw an exception by the findFiles method in the Filesystem class.

return new Collection();
}

return Filesystem::findFiles(path_join(static::$sourceDirectory, $name), $extensions);
}

Expand Down

0 comments on commit 481bb9f

Please sign in to comment.