From 1793cc163827b2fb284458960d975948c8266441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20M=2E?= Date: Thu, 15 Aug 2024 11:12:40 +0200 Subject: [PATCH] Only return value --- src/Views/Concerns/WithSeo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Concerns/WithSeo.php b/src/Views/Concerns/WithSeo.php index 19a6448..a6bb129 100644 --- a/src/Views/Concerns/WithSeo.php +++ b/src/Views/Concerns/WithSeo.php @@ -17,7 +17,7 @@ public function bootWithSeo(): void protected function seoValue(mixed $value, mixed $default = null): mixed { if ($value instanceof Closure) { - return value($value) ?? $default; + return value($value); } if (method_exists(static::class, $value)) {