Skip to content

Commit

Permalink
replaced var_export
Browse files Browse the repository at this point in the history
  • Loading branch information
kancijan committed Aug 14, 2024
1 parent 41af1a6 commit cb2681f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/TailwindTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function getTwDynamicPart($part, $attributes, $manifest, ...$custo
$value = Helpers::checkAttr($attributeName, $attributes, $manifest, true);

if (\is_bool($value)) {
$value = \var_export($value, true);
$value = $value ? 'true' : 'false';
}

if ($responsive ? empty($value['_default'] ?? '') : !$value) {
Expand Down Expand Up @@ -180,7 +180,7 @@ public static function getTwClasses($attributes, $manifest, ...$custom)
$value = Helpers::checkAttr($attributeName, $attributes, $manifest, true);

if (\is_bool($value)) {
$value = \var_export($value, true);
$value = $value ? 'true' : 'false';
}

if ($responsive ? empty($value['_default'] ?? '') : !$value) {
Expand Down

0 comments on commit cb2681f

Please sign in to comment.