Fix disabled metric check

This commit is contained in:
Jake Barnby
2025-02-17 17:29:12 +13:00
parent 390cdaa6a5
commit 6653972e11
+1 -1
View File
@@ -74,7 +74,7 @@ class StatsUsage extends Event
'project' => $this->getProject(),
'reduce' => $this->reduce,
'metrics' => \array_filter($this->metrics, function ($metric) {
foreach (array_keys($this->disabled) as $disabledMetric) {
foreach ($this->disabled as $disabledMetric) {
if (\str_ends_with($metric['key'], $disabledMetric)) {
return false;
}