From 2a9b01d002362344f7ec7b527b38f68b02cf513e Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 2 Jul 2020 10:27:44 -0700 Subject: [PATCH] Fixed some typehints --- app/src/Factories/FinderFactory.php | 2 +- app/src/ViewFunctions/ParentUrl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {