From cb2681f0d35107ea71cc6596e0dbd388b2f4a3d4 Mon Sep 17 00:00:00 2001 From: Ivan Kancijan Date: Wed, 14 Aug 2024 12:42:15 +0200 Subject: [PATCH] replaced var_export --- src/Helpers/TailwindTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helpers/TailwindTrait.php b/src/Helpers/TailwindTrait.php index dcc2a80b..f6b5acdb 100644 --- a/src/Helpers/TailwindTrait.php +++ b/src/Helpers/TailwindTrait.php @@ -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) { @@ -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) {