Skip to content

Commit

Permalink
Tweak to only skip shortening namespace when using base files
Browse files Browse the repository at this point in the history
  • Loading branch information
coatesap committed Apr 29, 2021
1 parent 96562a1 commit fd75015
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 fd75015

Please sign in to comment.