Skip to content

Commit

Permalink
work around phpstan issue (static doesnt work)
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed May 4, 2024
1 parent 1546e97 commit 9bd399d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@ public function getCriteriaDisplayPattern($ID, $condition, $pattern)

case "dropdown_status":
if ($this instanceof RuleCommonITILObject) {
$itil = static::getItemtype();
$itil = $this::getItemtype();
return $itil::getStatus($pattern);
} else {
return Ticket::getStatus($pattern);
Expand Down Expand Up @@ -2434,7 +2434,7 @@ public function displayCriteriaSelectPattern($name, $ID, $condition, $value = ""

case "dropdown_status":
if ($this instanceof RuleCommonITILObject) {
$itil = $this->getItemtype();
$itil = $this::getItemtype();
$itil::dropdownStatus(['name' => $name,
'value' => $value
]);
Expand Down Expand Up @@ -2519,7 +2519,7 @@ public function getActionValue($ID, $type, $value)

case "dropdown_status":
if ($this instanceof RuleCommonITILObject) {
$itil = static::getItemtype();
$itil = $this::getItemtype();
return $itil::getStatus($value);
} else {
return Ticket::getStatus($value);
Expand Down

0 comments on commit 9bd399d

Please sign in to comment.