Skip to content

Commit 8359719

Browse files
committed
Prevent double mixin tags
1 parent 19553f6 commit 8359719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ModelsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected function createPhpDocs($class)
490490
$phpdoc->appendTag($tag);
491491
}
492492

493-
if ($this->write) {
493+
if ($this->write && ! $phpdoc->getTagsByName('mixin')) {
494494
$phpdoc->appendTag(Tag::createInstance("@mixin \\Eloquent", $phpdoc));
495495
}
496496

0 commit comments

Comments
 (0)