Skip to content

Commit

Permalink
Merge pull request #2787 from web24compl/feature/allowing-null-values…
Browse files Browse the repository at this point in the history
…-in-javascript-recognizing-method

Added null parameter type as allowed to handle default Action column from laravel-datatables-html
  • Loading branch information
yajra authored May 18, 2022
2 parents 3009ad7 + 465fb15 commit fa35dc0
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 fa35dc0

Please sign in to comment.