From f7b4a1e74220af1d0db310f17ba1294862a32393 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Feb 2025 17:08:17 +0100 Subject: PHPStan more checkImplicitMixed (#7339) * PHPStan more checkImplicitMixed * Draft Entry.php * Finish Entry.php * Finish FeedDAO.php and Themes.php --- app/views/helpers/feed/update.phtml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'app/views/helpers/feed/update.phtml') diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 92fedd992..54d3e77a0 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -781,8 +781,14 @@ ?>
+ feed->attributeArray('curl_params')[CURLOPT_POSTFIELDS] ?? ''; + if (!is_string($postFields)) { + $postFields = ''; + } + ?>

@@ -810,8 +816,15 @@
+ feed->attributeArray('curl_params')[CURLOPT_HTTPHEADER] ?? []; + if (!is_array($httpHeaders)) { + $httpHeaders = []; + } + $httpHeaders = array_filter($httpHeaders, 'is_string'); + ?> -- cgit v1.2.3