Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Jan 16, 2025
1 parent 506873e commit 79f5158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Glpi/Asset/AssetDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,13 @@ public function getAssetTypeDictionaryCollectionClassName(bool $with_namespace =
/**
* Indicates whether the given capacity is enabled.
*
* @param CapacityInterface|class-string<CapacityInterface> $capacity
* @param CapacityInterface $capacity
* @return bool
*/
public function hasCapacityEnabled(CapacityInterface|string $capacity): bool
public function hasCapacityEnabled(CapacityInterface $capacity): bool
{
$enabled_capacities = $this->getDecodedCapacitiesField();
return in_array(is_string($capacity) ? $capacity : $capacity::class, $enabled_capacities);
return in_array($capacity::class, $enabled_capacities);
}

/**
Expand Down

0 comments on commit 79f5158

Please sign in to comment.