mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +01:00
Prevent the same interface, repopulated, from confusing matters
This commit is contained in:
parent
58c47ab32c
commit
ec9762ce61
@ -320,7 +320,10 @@ class Populator
|
||||
=== $declaring_method_storage->signature_return_type->getId()))
|
||||
&& $method_storage->inherited_return_type !== null
|
||||
) {
|
||||
if (!isset($storage->documenting_method_ids[$method_name])) {
|
||||
if (!isset($storage->documenting_method_ids[$method_name])
|
||||
|| (string) $storage->documenting_method_ids[$method_name]
|
||||
=== (string) $declaring_method_id
|
||||
) {
|
||||
$storage->documenting_method_ids[$method_name] = $declaring_method_id;
|
||||
$method_storage->inherited_return_type = true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user