Skip to content

Commit

Permalink
studly_case -> Str::studly
Browse files Browse the repository at this point in the history
  • Loading branch information
exileed committed Mar 23, 2021
1 parent 6e81109 commit 052511a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Answers/Answerable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Telegram\Bot\Answers;

use Illuminate\Support\Str;
use Telegram\Bot\Api;
use Telegram\Bot\Objects\Update;

Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 052511a

Please sign in to comment.