diff --git a/src/FacebookAds/Logger/CurlLogger.php b/src/FacebookAds/Logger/CurlLogger.php index 6c5052847..5f4292528 100644 --- a/src/FacebookAds/Logger/CurlLogger.php +++ b/src/FacebookAds/Logger/CurlLogger.php @@ -157,6 +157,7 @@ protected function processParams(Parameters $params, $method, $is_file) { if ($is_file && $params->offsetGet($name) instanceof FileParameter) { $value = "@" . $this->normalizeFileParam($params->offsetGet($name)); } else { + $value = (string) $value; $value = addcslashes( strpos($value, "\n") !== false ? $this->indent($value, 2)