Merge pull request #294 from bytestream/master

Fixes #293
This commit is contained in:
Barry vd. Heuvel
2015-12-14 14:33:18 +01:00
+3 -1
View File
@@ -416,7 +416,9 @@ class ModelsCommand extends Command
protected function setMethod($name, $type = '', $arguments = array())
{
if (!isset($this->methods[$name])) {
$methods = array_change_key_case($this->methods, CASE_LOWER);
if (!isset($methods[strtolower($name)])) {
$this->methods[$name] = array();
$this->methods[$name]['type'] = $type;
$this->methods[$name]['arguments'] = $arguments;