diff --git a/src/CachesValue.php b/src/CachesValue.php index 613b61e..10a4b92 100644 --- a/src/CachesValue.php +++ b/src/CachesValue.php @@ -295,9 +295,9 @@ public function markValue($value): string ! config('permanent-cache.components.markers.enabled') || ! is_subclass_of($this, CachedComponent::class) ) { - return (string) $value; + return $value; } - return $this->getMarker().$value.$this->getMarker(close: true); + return (string) $this->getMarker().$value.$this->getMarker(close: true); } }