From c56255dad86d3276a78d7ed0641bf18f481428b1 Mon Sep 17 00:00:00 2001 From: Riley Schoppa Date: Tue, 27 Feb 2024 13:26:31 -0500 Subject: [PATCH] Fix error when calling Laravel string functions --- src/LaravelStringHelpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelStringHelpers.php b/src/LaravelStringHelpers.php index bf27a6b..fa50cbd 100644 --- a/src/LaravelStringHelpers.php +++ b/src/LaravelStringHelpers.php @@ -24,7 +24,7 @@ protected function registerLaravelStringFunctions(): void if ($this->isLaravelEnvironment()) { foreach ($this->getLaravelStringMethods() as $method) { - $this->function($method, fn(...$args) => $method(...$args)); + $this->function($method, fn(...$args) => \Illuminate\Support\Str::$method(...$args)); } } }