From c6de55e7a8c81487b2512d9210b2765fd7b584a3 Mon Sep 17 00:00:00 2001 From: Oleg Khalin Date: Sun, 17 May 2020 13:33:56 +0300 Subject: [PATCH] Fix custom link text --- src/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Link.php b/src/Link.php index 7905a2c..81963b2 100644 --- a/src/Link.php +++ b/src/Link.php @@ -59,7 +59,7 @@ public function classes($additionalClasses) public function text($text) { $this->withMeta([ - 'text' => is_callable($text) ? call_user_func($text) : $text, + 'text' => $text instanceof Closure ? call_user_func($text) : $text, ]); return $this;