Skip to content

Commit

Permalink
Fix Node::getType() returning an incorrect value for ClassConstantsNo…
Browse files Browse the repository at this point in the history
…de and MethodReturnStatementsNode
  • Loading branch information
Muqsit authored and ondrejmirtes committed Jul 29, 2022
1 parent fb2da45 commit 53e0753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Node/ClassConstantsNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getFetches(): array

public function getType(): string
{
return 'PHPStan_Node_ClassPropertiesNode';
return 'PHPStan_Node_ClassConstantsNode';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Node/MethodReturnStatementsNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function hasNativeReturnTypehint(): bool

public function getType(): string
{
return 'PHPStan_Node_FunctionReturnStatementsNode';
return 'PHPStan_Node_MethodReturnStatementsNode';
}

/**
Expand Down

0 comments on commit 53e0753

Please sign in to comment.