Skip to content

Commit

Permalink
fix: change incorrect class & method
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed May 20, 2022
1 parent a2b68fc commit 07f30a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Visitors/ClassNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public function enterNode(Node $node)

public function getFirstFoundNode(): ?Node
{
return $this->class;
return array_key_exists(0, $this->nodes) ? $this->nodes[0] : null;
}

public function getFoundNodes(): array
{
return [$this->class];
return [$this->nodes];
}
}
2 changes: 1 addition & 1 deletion src/Visitors/MethodCallLoadLibraryNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class MethodCallLoadLibraryNodeVisitor extends NodeVisitor
{
use MethodCallChecker {
isMethodCallThisLoadLibrary as protected;
isMethodCallThisLoad as protected;
}

protected function isMethodCallThisLoadLibrary(Node $node): bool
Expand Down
2 changes: 1 addition & 1 deletion src/Visitors/MethodCallLoadModelNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class MethodCallLoadModelNodeVisitor extends NodeVisitor
{
use MethodCallChecker {
isMethodCallThisLoadLibrary as protected;
isMethodCallThisLoad as protected;
}

protected function isMethodCallThisLoadModel(Node $node): bool
Expand Down

0 comments on commit 07f30a4

Please sign in to comment.