Remove static overrides, because Laravel fixed this.

This commit is contained in:
Barry vd. Heuvel
2013-06-28 13:22:28 +02:00
parent 7f17da57b2
commit ae0dce2abd
@@ -324,14 +324,6 @@ exit('Only to be used as an helper for your IDE');\n\n";
if($method->name == "__construct"){
$tag->setType('self');
}elseif($alias == 'Eloquent' and
(in_array($method->name, array('pluck', 'first', 'fill', 'newInstance', 'newFromBuilder', 'create', 'find', 'findOrFail'))
or $returnValue === '\Illuminate\Database\Query\Builder')){
//Reference the calling class, to provide more accurate auto-complete
$tag->addType('static');
}elseif($alias == 'Eloquent' and in_array($method->name, array('all', 'get'))){
$tag->addType('\Eloquent[]');
$tag->addType('static[]');
}elseif($alias == 'Eloquent' and in_array($method->name, array('hasOne', 'hasMany', 'belongsTo', 'belongsToMany', 'morphOne', 'morphTo', 'morphMany'))){
$tag->addType('\Eloquent');
}