Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 557998a

Browse files
kalessilNaktibalda
authored andcommitted
SCA: dropped import duplicates, fixed a few cases of php core API misuse (#5639)
* SCA: dropped import duplicates, fixed a few cases of php core API misuse * SCA: partial revert to probe if semaphore build gets fixed
1 parent 9a3fa44 commit 557998a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Codeception/Lib/Connector/Guzzle.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\BrowserKit\Client;
1818
use Symfony\Component\BrowserKit\Cookie;
1919
use Symfony\Component\BrowserKit\Request as BrowserKitRequest;
20-
use Symfony\Component\BrowserKit\Request;
2120
use Symfony\Component\BrowserKit\Response as BrowserKitResponse;
2221

2322
class Guzzle extends Client
@@ -253,7 +252,7 @@ protected function extractFormData(BrowserKitRequest $request)
253252
return $request->getParameters();
254253
}
255254

256-
protected function extractMultipartFormData(Request $request)
255+
protected function extractMultipartFormData(BrowserKitRequest $request)
257256
{
258257
if (!in_array(strtoupper($request->getMethod()), ['POST', 'PUT', 'PATCH'])) {
259258
return [];

tests/unit/Codeception/Module/PhpBrowserRestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Codeception\Test\Unit;
4-
use Codeception\Util\Stub as Stub;
4+
use Codeception\Util\Stub;
55

66
class PhpBrowserRestTest extends Unit
77
{

0 commit comments

Comments
 (0)