Skip to content

Commit

Permalink
Merge pull request #435 from infinum/kancijan-patch-1
Browse files Browse the repository at this point in the history
Fix processCombination()
  • Loading branch information
kancijan authored Oct 4, 2024
2 parents ddbe7b8 + 5f8488f commit 4dd51bb
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 4dd51bb

Please sign in to comment.