Made method name searching case insensitive

This commit is contained in:
Daniil Gentili 2017-01-23 16:29:07 +01:00
parent 3d5e0baee9
commit 596fca4dc9

View File

@ -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],