Prevent double mixin tags

This commit is contained in:
Barry vd. Heuvel
2016-03-03 09:43:49 +01:00
parent 19553f63e4
commit 83597196f9
+1 -1
View File
@@ -490,7 +490,7 @@ class ModelsCommand extends Command
$phpdoc->appendTag($tag);
}
if ($this->write) {
if ($this->write && ! $phpdoc->getTagsByName('mixin')) {
$phpdoc->appendTag(Tag::createInstance("@mixin \\Eloquent", $phpdoc));
}