Add Query\Builder return type to magic scope* methods

This commit is contained in:
Malikin Sergey
2015-03-29 13:30:50 +03:00
parent d9f79eb128
commit 1d3a98f0e5
+1 -1
View File
@@ -303,7 +303,7 @@ class ModelsCommand extends Command
$args = $this->getParameters($reflection);
//Remove the first ($query) argument
array_shift($args);
$this->setMethod($name, '\\' . $reflection->class, $args);
$this->setMethod($name, '\Illuminate\Database\Query\Builder|\\' . $reflection->class, $args);
}
} elseif (!method_exists('Eloquent', $method) && !Str::startsWith($method, 'get')) {