Compare commits

...
Author SHA1 Message Date
Barry vd. Heuvel 9b3d5cab7c Update ModelsCommand.php 2023-01-22 14:47:04 +01:00
+2 -2
View File
@@ -935,14 +935,14 @@ class ModelsCommand extends Command
// remove the already existing tag to prevent duplicates // remove the already existing tag to prevent duplicates
foreach ($phpdoc->getTagsByName('mixin') as $tag) { foreach ($phpdoc->getTagsByName('mixin') as $tag) {
if($tag->getContent() === $eloquentClassNameInModel) { if ($tag->getContent() === $eloquentClassNameInModel) {
$phpdoc->deleteTag($tag); $phpdoc->deleteTag($tag);
} }
} }
$phpdoc->appendTag(Tag::createInstance('@mixin ' . $eloquentClassNameInModel, $phpdoc)); $phpdoc->appendTag(Tag::createInstance('@mixin ' . $eloquentClassNameInModel, $phpdoc));
} }
if ($this->phpstorm_noinspections) { if ($this->phpstorm_noinspections) {
/** /**
* Facades, Eloquent API * Facades, Eloquent API