Skip to content

Commit e12f672

Browse files
committed
MQE-424: Fix static code issues in MFTF tests and MFTF
1 parent 3ba4a6d commit e12f672

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/Curl/AdminExecutor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function setFormKey()
103103
* @param string $url
104104
* @param array $data
105105
* @param string $method
106-
* @param mixed $headers
106+
* @param array $headers
107107
* @return void
108108
* @throws TestFrameworkException
109109
*/
@@ -162,7 +162,7 @@ public function read($successRegex = null, $returnRegex = null)
162162
* Add additional option to cURL.
163163
*
164164
* @param int $option the CURLOPT_* constants
165-
* @param mixed $value
165+
* @param int|string|bool|array $value
166166
* @return void
167167
*/
168168
public function addOption($option, $value)

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/Curl/WebapiExecutor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function write($url, $data = [], $method = CurlInterface::POST, $headers
109109
*
110110
* @param string $successRegex
111111
* @param string $returnRegex
112-
* @return mixed
112+
* @return string
113113
*/
114114
public function read($successRegex = null, $returnRegex = null)
115115
{
@@ -121,7 +121,7 @@ public function read($successRegex = null, $returnRegex = null)
121121
* Add additional option to cURL.
122122
*
123123
* @param int $option the CURLOPT_* constants
124-
* @param mixed $value
124+
* @param int|string|bool|array $value
125125
* @return void
126126
*/
127127
public function addOption($option, $value)

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/DataPersistenceHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function getCreatedDataByName($dataName)
119119
/**
120120
* Save created entity.
121121
*
122-
* @param mixed $response
122+
* @param string|array $response
123123
* @param array $requestDataArray
124124
* @param bool $isJson
125125
* @return void

src/Magento/FunctionalTestingFramework/Util/Protocol/CurlInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface CurlInterface
2323
* Add additional option to cURL.
2424
*
2525
* @param int $option
26-
* @param mixed $value
26+
* @param int|string|bool|array $value
2727
* @return $this
2828
*/
2929
public function addOption($option, $value);
@@ -32,9 +32,9 @@ public function addOption($option, $value);
3232
* Send request to the remote server.
3333
*
3434
* @param string $url
35-
* @param mixed $body
35+
* @param array $body
3636
* @param string $method
37-
* @param mixed $headers
37+
* @param array $headers
3838
* @return void
3939
*/
4040
public function write($url, $body = [], $method = CurlInterface::POST, $headers = []);
@@ -44,7 +44,7 @@ public function write($url, $body = [], $method = CurlInterface::POST, $headers
4444
*
4545
* @param string $successRegex
4646
* @param string $returnRegex
47-
* @return mixed
47+
* @return string|array
4848
*/
4949
public function read($successRegex = null, $returnRegex = null);
5050

src/Magento/FunctionalTestingFramework/Util/Protocol/CurlTransport.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function setOptions(array $options = [])
9393
* Add additional option to cURL.
9494
*
9595
* @param int $option
96-
* @param mixed $value
96+
* @param int|string|bool|array $value
9797
* @return $this
9898
*/
9999
public function addOption($option, $value)
@@ -118,9 +118,9 @@ public function setConfig(array $config = [])
118118
* Send request to the remote server.
119119
*
120120
* @param string $url
121-
* @param mixed $body
121+
* @param array $body
122122
* @param string $method
123-
* @param mixed $headers
123+
* @param array $headers
124124
* @return void
125125
* @throws TestFrameworkException
126126
*/
@@ -228,7 +228,7 @@ public function getError()
228228
* Get information regarding a specific transfer.
229229
*
230230
* @param int $opt CURLINFO option
231-
* @return mixed
231+
* @return string|array
232232
*/
233233
public function getInfo($opt = 0)
234234
{

0 commit comments

Comments
 (0)