Skip to content

Commit e6ebaf2

Browse files
committed
Allow mixed value
1 parent 696cabc commit e6ebaf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utilities/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ public static function toJsonScript(array $parameters, int $options = 0): string
341341
return str_replace($replacements, $values, $json);
342342
}
343343

344-
public static function isJavascript(string $value, string $key): bool
344+
public static function isJavascript(string|array|object $value, string $key): bool
345345
{
346-
if (empty($value)) {
346+
if (empty($value) || is_array($value) || is_object($value)) {
347347
return false;
348348
}
349349

0 commit comments

Comments
 (0)