diff --git a/composer.json b/composer.json index d556575..2660f17 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require": { "php": "^8.1", "ext-json": "*", - "symfony/finder": "7.*", + "symfony/finder": "6.*|7.*", "illuminate/config": "10.*|11.*", "illuminate/console": "10.*|11.*", "illuminate/contracts": "10.*|11.*", diff --git a/src/Preloader.php b/src/Preloader.php index 659bfbf..e00a70b 100644 --- a/src/Preloader.php +++ b/src/Preloader.php @@ -45,7 +45,7 @@ public function __construct( * * @param (\Closure(\Symfony\Component\Finder\Finder):void)|string ...$exclude */ - public function exclude(string ...$exclude): void + public function exclude(Closure|string ...$exclude): void { $this->exclude = $this->normalizeListing($exclude); } @@ -55,7 +55,7 @@ public function exclude(string ...$exclude): void * * @param (\Closure(\Symfony\Component\Finder\Finder):void)|string ...$append */ - public function append(Closure | string ...$append): void + public function append(Closure|string ...$append): void { $this->append = $this->normalizeListing($append); }