Skip to content

Commit

Permalink
fix: rename incorrect autoload model key
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed May 29, 2022
1 parent 19124b9 commit 63e9a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Visitors/AssignAutoloadModelNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AssignAutoloadModelNodeVisitor extends NodeVisitor

protected function isAssignArrayAutoloadModel(Node $node): bool
{
return $this->isAssignAutoloadArray($node) && $node->var->dim->value === 'models';
return $this->isAssignAutoloadArray($node) && $node->var->dim->value === 'model';
}

public function enterNode(Node $node)
Expand Down

0 comments on commit 63e9a0b

Please sign in to comment.