mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-10 17:20:02 -04:00
Enforce int as type for params when creating instances of CheckAttempt
This commit is contained in:
parent
12c5d96f6a
commit
94630c46fd
3 changed files with 4 additions and 4 deletions
|
|
@ -176,7 +176,7 @@ class CheckStatistics extends Card
|
|||
new VerticalKeyValue(t('Command'), $this->object->checkcommand),
|
||||
new VerticalKeyValue(
|
||||
t('Attempts'),
|
||||
new CheckAttempt($this->object->state->attempt, $this->object->max_check_attempts)
|
||||
new CheckAttempt((int) $this->object->state->attempt, (int) $this->object->max_check_attempts)
|
||||
),
|
||||
new VerticalKeyValue(t('Check Source'), $checkSource),
|
||||
new VerticalKeyValue(
|
||||
|
|
|
|||
|
|
@ -200,8 +200,8 @@ abstract class BaseHistoryListItem extends BaseListItem
|
|||
$isSoftState = true;
|
||||
|
||||
$visual->addHtml(new CheckAttempt(
|
||||
$this->item->state->attempt,
|
||||
$this->item->state->max_check_attempts
|
||||
(int) $this->item->state->attempt,
|
||||
(int) $this->item->state->max_check_attempts
|
||||
));
|
||||
} else {
|
||||
$previousState = 'previous_hard_state';
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ abstract class StateListItem extends BaseListItem
|
|||
|
||||
$visual->add($stateBall);
|
||||
if ($this->state->state_type === 'soft') {
|
||||
$visual->add(new CheckAttempt($this->state->attempt, $this->item->max_check_attempts));
|
||||
$visual->add(new CheckAttempt((int) $this->state->attempt, (int) $this->item->max_check_attempts));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue