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 28, 2023
1 parent 54531a1 commit e8bc9a6
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 !== $parent_const_storage
) {
IssueBuffer::maybeAdd(
new AmbiguousConstantInheritance(
Expand Down

0 comments on commit e8bc9a6

Please sign in to comment.