diff --git a/core/tests/Drupal/Tests/Component/Utility/MapArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/MapArrayTest.php index c5e7c12..b0cb0d5 100644 --- a/core/tests/Drupal/Tests/Component/Utility/MapArrayTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/MapArrayTest.php @@ -30,17 +30,17 @@ public static function getInfo() { * * @dataProvider providerCopyValuesToKey * - * @param $input - * The input variable for the MapArray::copyValuesToKey() function. - * @param $expected - * The expected output from when calling the function. + * @param array $input + * The input array for the MapArray::copyValuesToKey() method. + * @param array $expected + * The expected output from calling the method. * @param callable $callable * The optional callable. * * @see Drupal\Component\Utility\MapArray::copyValuesToKey() * @see Drupal\Tests\Component\Utility\MapArrayTest::providerCopyValuesToKey() */ - public function testCopyValuesToKey($input, $expected, $callable = NULL) { + public function testCopyValuesToKey(array $input, array $expected, $callable = NULL) { $output = MapArray::copyValuesToKeys($input, $callable); $this->assertEquals($expected, $output); } @@ -48,7 +48,7 @@ public function testCopyValuesToKey($input, $expected, $callable = NULL) { /** * Data provider for MapArray::copyValuesToKey(). * - * @return + * @return array * An array of tests, matching the parameter inputs for testCopyValuesToKey. * * @see Drupal\Component\Utility\MapArray::copyValuesToKey() @@ -92,8 +92,11 @@ public function providerCopyValuesToKey() { /** * Callback for a test in providerCopyValuesToKey(), which doubles the value. * - * @param $n + * @param int $n * The value passed in from array_map(). + * + * @return int + * The doubled integer value. */ public static function providerCopyValuesToKeyCallback($n) { return $n * 2;