File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <files psalm-version =" 5.22.2@d768d914152dbbf3486c36398802f74e80cfde48" />
2+ <files psalm-version =" 5.22.2@d768d914152dbbf3486c36398802f74e80cfde48" >
3+ <file src =" src/Foundation/Concerns/HasHttpClient.php" >
4+ <UndefinedConstant >
5+ <code ><![CDATA[ MULTIPART_TRY_OPEN_FILE]]> </code >
6+ </UndefinedConstant >
7+ </file >
8+ </files >
Original file line number Diff line number Diff line change @@ -175,7 +175,10 @@ public function defaultHttpOptions(): array
175175 public function normalizeHttpOptions (array $ options ): array
176176 {
177177 if (isset ($ options [RequestOptions::MULTIPART ])) {
178- $ options [RequestOptions::MULTIPART ] = Utils::multipartFor ($ options [RequestOptions::MULTIPART ]);
178+ $ options [RequestOptions::MULTIPART ] = Utils::multipartFor (
179+ $ options [RequestOptions::MULTIPART ],
180+ MULTIPART_TRY_OPEN_FILE
181+ );
179182 }
180183
181184 return $ options ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Utils
2424 /**
2525 * Convert a form array into a multipart array.
2626 */
27- public static function multipartFor (array $ form , int $ options = MULTIPART_TRY_OPEN_FILE ): array
27+ public static function multipartFor (array $ form , int $ options = 0 ): array
2828 {
2929 /**
3030 * @param array-key $name
You can’t perform that action at this time.
0 commit comments