Skip to content

Commit

Permalink
test: remove @param mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 3, 2022
1 parent fb8be3e commit 1dad2a9
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions tests/system/Helpers/ArrayHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ public function testArrayDotIgnoresLastWildcard()
/**
* @dataProvider deepSearchProvider
*
* @param mixed $key
* @param mixed $expected
* @param int|string $key
* @param array|string|null $expected
*/
public function testArrayDeepSearch($key, $expected)
{
Expand Down Expand Up @@ -247,12 +247,8 @@ public function testArrayDeepSearchReturnNullEmptyArray()

/**
* @dataProvider sortByMultipleKeysProvider
*
* @param mixed $data
* @param mixed $sortColumns
* @param mixed $expected
*/
public function testArraySortByMultipleKeysWithArray($data, $sortColumns, $expected)
public function testArraySortByMultipleKeysWithArray(array $data, array $sortColumns, array $expected)
{
$success = array_sort_by_multiple_keys($data, $sortColumns);

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

/**
* @dataProvider sortByMultipleKeysProvider
*
* @param mixed $data
* @param mixed $sortColumns
* @param mixed $expected
*/
public function testArraySortByMultipleKeysWithObjects($data, $sortColumns, $expected)
public function testArraySortByMultipleKeysWithObjects(array $data, array $sortColumns, array $expected)
{
// Morph to objects
foreach ($data as $index => $dataSet) {
Expand All @@ -282,12 +274,8 @@ public function testArraySortByMultipleKeysWithObjects($data, $sortColumns, $exp

/**
* @dataProvider sortByMultipleKeysProvider
*
* @param mixed $data
* @param mixed $sortColumns
* @param mixed $expected
*/
public function testArraySortByMultipleKeysFailsEmptyParameter($data, $sortColumns, $expected)
public function testArraySortByMultipleKeysFailsEmptyParameter(array $data, array $sortColumns, array $expected)
{
// Both filled
$success = array_sort_by_multiple_keys($data, $sortColumns);
Expand Down

0 comments on commit 1dad2a9

Please sign in to comment.