Skip to content

Commit

Permalink
Fix processCombination()
Browse files Browse the repository at this point in the history
Removed boolean conversion to string from processCombination()
  • Loading branch information
kancijan authored Oct 4, 2024
1 parent ddbe7b8 commit 5f8488f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Helpers/TailwindTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ private static function processCombination($partName, $combo, $attributes, $mani
foreach ($combo['attributes'] as $attributeName => $allowedValue) {
$optionValue = Helpers::checkAttr($attributeName, $attributes, $manifest, true);

if (\is_bool($optionValue)) {
$optionValue = $optionValue ? 'true' : 'false';
}

$isArrayCondition = \is_array($allowedValue);

if ($isArrayCondition && !\in_array($optionValue, $allowedValue, true)) {
Expand Down

0 comments on commit 5f8488f

Please sign in to comment.