Skip to content

Commit

Permalink
Added null parameter type as allowed to handle default Action column …
Browse files Browse the repository at this point in the history
…from laravel-datatables-html
  • Loading branch information
adamale committed May 17, 2022
1 parent 3009ad7 commit 465fb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public static function toJsonScript(array $parameters, int $options = 0): string
return str_replace($replacements, $values, $json);
}

public static function isJavascript(string|array|object $value, string $key): bool
public static function isJavascript(string|array|object|null $value, string $key): bool
{
if (empty($value) || is_array($value) || is_object($value)) {
return false;
Expand Down

0 comments on commit 465fb15

Please sign in to comment.