From 2153af7effb19c30a2e6ce32c8730f2bd1bd7c2d Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 7 May 2025 17:50:52 +0300 Subject: [PATCH] Making PHPStan happy --- im.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/im.inc.php b/im.inc.php index 676c485..e2f3295 100644 --- a/im.inc.php +++ b/im.inc.php @@ -151,7 +151,7 @@ function mm_post_file( $fields['files'] = $file; $ch = curl_init("$server/api/v4/files"); - curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -189,7 +189,7 @@ function mm_post_png( $fields['files'] = $file; $ch = curl_init("$server/api/v4/files"); - curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);