diff --git a/app/Models/Incident.php b/app/Models/Incident.php index da7c6c4e..1816f850 100644 --- a/app/Models/Incident.php +++ b/app/Models/Incident.php @@ -199,10 +199,10 @@ class Incident extends Model implements HasPresenter public function getIsResolvedAttribute() { if ($updates = $this->updates->first()) { - return intVal($updates->status) === self::FIXED; + return (int) $updates->status === self::FIXED; } - return intVal($this->status) === self::FIXED; + return (int) $this->status === self::FIXED; } /**