Skip to content

Instantly share code, notes, and snippets.

@pilif
Created March 17, 2023 14:39
Show Gist options
  • Save pilif/0ba367c04781c11e35a82d312468ade4 to your computer and use it in GitHub Desktop.
Save pilif/0ba367c04781c11e35a82d312468ade4 to your computer and use it in GitHub Desktop.
diff --git a/src/Psalm/Issue/PropertyIssue.php b/src/Psalm/Issue/PropertyIssue.php
index f64cd6cc4..4d0befda1 100644
--- a/src/Psalm/Issue/PropertyIssue.php
+++ b/src/Psalm/Issue/PropertyIssue.php
@@ -4,6 +4,8 @@ namespace Psalm\Issue;
use Psalm\CodeLocation;
+use function get_class;
+
abstract class PropertyIssue extends CodeIssue
{
/**
@@ -18,5 +20,6 @@ abstract class PropertyIssue extends CodeIssue
) {
parent::__construct($message, $code_location);
$this->property_id = $property_id;
+ $this->dupe_key = get_class($this) . $property_id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment