Fix disabled metric check

This commit is contained in:
Jake Barnby 2025-02-17 17:29:12 +13:00
parent 390cdaa6a5
commit 6653972e11
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

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;
}