Skip to content

Commit fecff14

Browse files
committed
Implement rendering of classlist
The classlist directive supports sub directives to allow users to add their own list styling.
1 parent 7472484 commit fecff14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Executor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use function is_array;
3030
use function is_iterable;
3131
use function is_object;
32+
use function is_string;
3233
use function iterator_to_array;
3334
use function strrpos;
3435
use function substr;
@@ -53,6 +54,10 @@ public function evaluateEqualsComparison(mixed $root, mixed $currentObject, Quer
5354
$leftValue = $this->toValue($this->evaluate($left, $currentObject, $root));
5455
$rightValue = $this->toValue($this->evaluate($right, $currentObject, $root));
5556

57+
if (is_string($rightValue)) {
58+
return ((string) $leftValue) === $rightValue;
59+
}
60+
5661
return $leftValue === $rightValue;
5762
}
5863

0 commit comments

Comments
 (0)