We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67b6cd9 + 265138d commit a9f87feCopy full SHA for a9f87fe
Model/CachedStatusResolver.php
@@ -163,14 +163,14 @@ public function setMessagesByStatus(array $messagesByStatus): self
163
164
public function getFlappingStatus(string $oldStatus, string $newStatus): CheckStatus
165
{
166
- $statusToSet = CheckStatus::STATUS_OK;
+ $statusToSet = CheckStatus::STATUS_OK->name;
167
if (self::STATUSES_BY_SEVERITY[$oldStatus] < self::STATUSES_BY_SEVERITY[$newStatus]) {
168
$statusToSet = "STATUS_" . strtoupper($oldStatus);
169
} else {
170
$statusToSet = "STATUS_" . strtoupper($newStatus);
171
}
172
173
- return CheckStatus::{$statusToSet};
+ return constant("\Vendic\OhDear\Api\Data\CheckStatus::{$statusToSet}");
174
175
176
private function getStatusTimeThreshold(): int
0 commit comments