diff --git a/app/src/Factories/FinderFactory.php b/app/src/Factories/FinderFactory.php index 2d4080e..0c549b7 100644 --- a/app/src/Factories/FinderFactory.php +++ b/app/src/Factories/FinderFactory.php @@ -18,7 +18,7 @@ class FinderFactory /** @var HiddenFiles Collection of hidden files */ protected $hiddenFiles; - /** @var Glob Hidden files pattern cache */ + /** @var Glob|null Hidden files pattern cache */ protected $pattern; /** diff --git a/app/src/ViewFunctions/ParentUrl.php b/app/src/ViewFunctions/ParentUrl.php index cc3e7c9..8cccd3b 100644 --- a/app/src/ViewFunctions/ParentUrl.php +++ b/app/src/ViewFunctions/ParentUrl.php @@ -29,7 +29,7 @@ class ParentUrl extends ViewFunction * * @return string */ - public function __invoke(string $path) + public function __invoke(string $path): string { $parentDir = Str::explode($path, $this->directorySeparator)->map( static function (string $segment): string {