Skip to content

Commit

Permalink
Merge pull request #211 from reliese/209-fix-instances-of-base-class
Browse files Browse the repository at this point in the history
Tweak to only skip shortening namespace when using base files
  • Loading branch information
coatesap authored Apr 29, 2021
2 parents fba5731 + fd75015 commit 47eeb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Coders/Model/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private function shortenAndExtractImportableDependencies(&$placeholder, $model)
*
* @see https://github.com/reliese/laravel/issues/209
*/
if ($usedClass === $model->getQualifiedUserClassName()) {
if ($model->usesBaseFiles() && $usedClass === $model->getQualifiedUserClassName()) {
continue;
}

Expand Down

0 comments on commit 47eeb40

Please sign in to comment.