Skip to content

Commit fa35dc0

Browse files
authored
Merge pull request #2787 from web24compl/feature/allowing-null-values-in-javascript-recognizing-method
Added null parameter type as allowed to handle default Action column from laravel-datatables-html
2 parents 3009ad7 + 465fb15 commit fa35dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public static function toJsonScript(array $parameters, int $options = 0): string
337337
return str_replace($replacements, $values, $json);
338338
}
339339

340-
public static function isJavascript(string|array|object $value, string $key): bool
340+
public static function isJavascript(string|array|object|null $value, string $key): bool
341341
{
342342
if (empty($value) || is_array($value) || is_object($value)) {
343343
return false;

0 commit comments

Comments
 (0)