$value) { if (is_string($value) && class_exists('CURLFile', false) && stripos($value, '@') === 0) { if (($filename = realpath(trim($value, '@'))) && file_exists($filename)) { list($needBuild, $data[$key]) = [false, new \CURLFile($filename)]; } } } return $needBuild ? http_build_query($data) : $data; } }