fix
Merge pull request #7 from jedmiry/master

Fixes error due to which $method was not passed. Thanks @jedmiry