Skip to content

Commit

Permalink
Fix error when calling Laravel string functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley19280 committed Feb 27, 2024
1 parent 03aef3b commit c56255d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelStringHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit c56255d

Please sign in to comment.