Skip to content

Commit

Permalink
Do not emit AmbiguousConstantInheritance when inheriting from the sam…
Browse files Browse the repository at this point in the history
…e statement
  • Loading branch information
Jean85 committed Apr 27, 2023
1 parent 54531a1 commit 5367cb7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ private static function getOverriddenConstant(
assert($parent_classlike_storage !== null);
if (!isset($parent_classlike_storage->parent_interfaces[strtolower($interface)])
&& !isset($interface_storage->parent_interfaces[strtolower($parent_classlike_storage->name)])
&& $interface_const_storage->stmt_location->getHash() !== $const_storage->stmt_location->getHash()
) {
IssueBuffer::maybeAdd(
new AmbiguousConstantInheritance(
Expand Down

0 comments on commit 5367cb7

Please sign in to comment.