Skip to content

Instantly share code, notes, and snippets.

@pilif
Created June 13, 2024 09:15
Show Gist options
  • Save pilif/7e37adbb2ec6f87683a406cd36ac7fde to your computer and use it in GitHub Desktop.
Save pilif/7e37adbb2ec6f87683a406cd36ac7fde to your computer and use it in GitHub Desktop.
diff --git a/src/Analyser/Ignore/IgnoredErrorHelper.php b/src/Analyser/Ignore/IgnoredErrorHelper.php
index 068114767..bff07c108 100644
--- a/src/Analyser/Ignore/IgnoredErrorHelper.php
+++ b/src/Analyser/Ignore/IgnoredErrorHelper.php
@@ -68,9 +68,9 @@ class IgnoredErrorHelper
continue;
}
- $key = '';
+ $key = $ignoreError['path'];
if (isset($ignoreError['message'])) {
- $key = sprintf("%s\n%s", $ignoreError['message'], $ignoreError['path']);
+ $key = sprintf("%s\n%s", $key, $ignoreError['message']);
}
if (isset($ignoreError['identifier'])) {
$key = sprintf("%s\n%s", $key, $ignoreError['identifier']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment