Skip to content

Instantly share code, notes, and snippets.

@pilif
Created June 13, 2024 09:14
Show Gist options
  • Save pilif/4d8e73cd6576dda2f9d53da651badb7b to your computer and use it in GitHub Desktop.
Save pilif/4d8e73cd6576dda2f9d53da651badb7b 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