From e2f1c491ad5b07e44e1a244aff64f87c73a2935d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Boh=C3=A9mier?= <49654-bohemier@users.noreply.drupalcode.org> Date: Tue, 18 Apr 2023 13:01:10 +0000 Subject: [PATCH] Issue #3333298: Do not pass NULL to in_array() in PdftkPdfBackend --- src/Plugin/PdfBackend/PdftkPdfBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/PdfBackend/PdftkPdfBackend.php b/src/Plugin/PdfBackend/PdftkPdfBackend.php index d8b648a..f9c4491 100644 --- a/src/Plugin/PdfBackend/PdftkPdfBackend.php +++ b/src/Plugin/PdfBackend/PdftkPdfBackend.php @@ -142,7 +142,7 @@ class PdftkPdfBackend extends PdfBackendBase implements ContainerFactoryPluginIn } // Separate the data key from the data value. [$key, $value] = explode(':', $lineitem); - if (in_array($key, array_keys($data_fields_map), NULL)) { + if (in_array($key, array_keys($data_fields_map))) { // Trim spaces. $fields[$fieldindex][$data_fields_map[$key]] = trim($value); } -- GitLab