From 052511aedf88cbc6f2318f20e8d67d5fb49c9fe0 Mon Sep 17 00:00:00 2001 From: Dmitriy Kuts Date: Tue, 23 Mar 2021 17:22:58 +0100 Subject: [PATCH] studly_case -> Str::studly --- src/Answers/Answerable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Answers/Answerable.php b/src/Answers/Answerable.php index 13994a2..ce138df 100644 --- a/src/Answers/Answerable.php +++ b/src/Answers/Answerable.php @@ -2,6 +2,7 @@ namespace Telegram\Bot\Answers; +use Illuminate\Support\Str; use Telegram\Bot\Api; use Telegram\Bot\Objects\Update; @@ -42,7 +43,7 @@ public function __call($method, $arguments) { $action = substr($method, 0, 9); if ($action === 'replyWith') { - $reply_name = studly_case(substr($method, 9)); + $reply_name = Str::studly(substr($method, 9)); $methodName = 'send'.$reply_name; if (!method_exists($this->telegram, $methodName)) {