From 465fb15ae1820ed4604ce14574ed3f49c298b8e8 Mon Sep 17 00:00:00 2001 From: Adam Aleksak Date: Tue, 17 May 2022 13:38:19 +0200 Subject: [PATCH] Added null parameter type as allowed to handle default Action column from laravel-datatables-html --- src/Utilities/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/Helper.php b/src/Utilities/Helper.php index 923a28c3..5683ed91 100644 --- a/src/Utilities/Helper.php +++ b/src/Utilities/Helper.php @@ -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;