From 8b16551100410300a10decddfbfda9934b85674c Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Fri, 1 Dec 2023 18:56:15 +0000 Subject: [PATCH] [NFC] Pass correct param types to file_get_contents --- CRM/Contact/Form/Task/PDFTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Task/PDFTrait.php b/CRM/Contact/Form/Task/PDFTrait.php index 9e8219c27d..08451c3953 100644 --- a/CRM/Contact/Form/Task/PDFTrait.php +++ b/CRM/Contact/Form/Task/PDFTrait.php @@ -272,7 +272,7 @@ trait CRM_Contact_Form_Task_PDFTrait { if ($tee) { $tee->stop(); - $content = file_get_contents($tee->getFileName(), NULL, NULL, NULL, 5); + $content = file_get_contents($tee->getFileName(), FALSE, NULL, 0, 5); if (empty($content)) { throw new \CRM_Core_Exception("Failed to capture document content (type=$type)!"); } -- 2.25.1