From a7b21ad6d144d0e13d922e2b34fecb60a9c95f8f Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 13 Apr 2020 12:39:12 -0700 Subject: [PATCH] Fixed a static analysis error --- app/src/ViewFunctions/ParentUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ViewFunctions/ParentUrl.php b/app/src/ViewFunctions/ParentUrl.php index 50a0c25..6dc6228 100644 --- a/app/src/ViewFunctions/ParentUrl.php +++ b/app/src/ViewFunctions/ParentUrl.php @@ -35,7 +35,7 @@ class ParentUrl extends ViewFunction function (string $segment): string { return rawurlencode($segment); } - )->filter(function ($value): bool { + )->filter(function (?string $value): bool { return $value !== null; })->slice(0, -1)->implode($this->directorySeparator);