From 596fca4dc91160b75478960aac4e1ae1286fc63e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 23 Jan 2017 16:29:07 +0100 Subject: [PATCH] Made method name searching case insensitive --- src/danog/MadelineProto/TL/TLMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TLMethod.php b/src/danog/MadelineProto/TL/TLMethod.php index 28cc03f1..3af27f63 100644 --- a/src/danog/MadelineProto/TL/TLMethod.php +++ b/src/danog/MadelineProto/TL/TLMethod.php @@ -38,7 +38,7 @@ class TLMethod extends TLParams public function find_by_method($method) { - $key = array_search($method, $this->method); + $key = array_search(strtolower($method), array_map('strtolower', $this->method)); return ($key === false) ? false : [ 'id' => $this->id[$key],