Skip to content

Commit 1dad2a9

Browse files
committed
test: remove @param mixed
1 parent fb8be3e commit 1dad2a9

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

tests/system/Helpers/ArrayHelperTest.php

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ public function testArrayDotIgnoresLastWildcard()
209209
/**
210210
* @dataProvider deepSearchProvider
211211
*
212-
* @param mixed $key
213-
* @param mixed $expected
212+
* @param int|string $key
213+
* @param array|string|null $expected
214214
*/
215215
public function testArrayDeepSearch($key, $expected)
216216
{
@@ -247,12 +247,8 @@ public function testArrayDeepSearchReturnNullEmptyArray()
247247

248248
/**
249249
* @dataProvider sortByMultipleKeysProvider
250-
*
251-
* @param mixed $data
252-
* @param mixed $sortColumns
253-
* @param mixed $expected
254250
*/
255-
public function testArraySortByMultipleKeysWithArray($data, $sortColumns, $expected)
251+
public function testArraySortByMultipleKeysWithArray(array $data, array $sortColumns, array $expected)
256252
{
257253
$success = array_sort_by_multiple_keys($data, $sortColumns);
258254

@@ -262,12 +258,8 @@ public function testArraySortByMultipleKeysWithArray($data, $sortColumns, $expec
262258

263259
/**
264260
* @dataProvider sortByMultipleKeysProvider
265-
*
266-
* @param mixed $data
267-
* @param mixed $sortColumns
268-
* @param mixed $expected
269261
*/
270-
public function testArraySortByMultipleKeysWithObjects($data, $sortColumns, $expected)
262+
public function testArraySortByMultipleKeysWithObjects(array $data, array $sortColumns, array $expected)
271263
{
272264
// Morph to objects
273265
foreach ($data as $index => $dataSet) {
@@ -282,12 +274,8 @@ public function testArraySortByMultipleKeysWithObjects($data, $sortColumns, $exp
282274

283275
/**
284276
* @dataProvider sortByMultipleKeysProvider
285-
*
286-
* @param mixed $data
287-
* @param mixed $sortColumns
288-
* @param mixed $expected
289277
*/
290-
public function testArraySortByMultipleKeysFailsEmptyParameter($data, $sortColumns, $expected)
278+
public function testArraySortByMultipleKeysFailsEmptyParameter(array $data, array $sortColumns, array $expected)
291279
{
292280
// Both filled
293281
$success = array_sort_by_multiple_keys($data, $sortColumns);

0 commit comments

Comments
 (0)