Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ded8034

Browse filesBrowse files
[HttpClient] Fix PHP 8.3 deprecation in tests
1 parent 0215154 commit ded8034
Copy full SHA for ded8034

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎Tests/HttpClientTraitTest.php

Copy file name to clipboardExpand all lines: Tests/HttpClientTraitTest.php
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ public function testPrepareRequestWithBodyIsArray()
7272
public function testNormalizeBodyMultipart()
7373
{
7474
$file = fopen('php://memory', 'r+');
75-
stream_context_set_option($file, ['http' => [
76-
'filename' => 'test.txt',
77-
'content_type' => 'text/plain',
78-
]]);
75+
stream_context_set_option($file, 'http', 'filename', 'test.txt');
76+
stream_context_set_option($file, 'http', 'content_type', 'text/plain');
7977
fwrite($file, 'foobarbaz');
8078
rewind($file);
8179

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.