Skip to content

Commit

Permalink
GH-139 Add documentation note about callback's expected return
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed May 30, 2022
1 parent c599193 commit d11c399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/unlocalised.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function array_any(array $inputArray, callable $callback) {
}

/**
* Maps an object, allowing to access the key of each value, and change both key & value
* Maps an object, allowing to access the key of each value, and change both key & value.
* The callback should return a pair of [ $value, $key ]
*/
function object_map(array $inputObject, callable $callback) {
return array_column(
Expand Down

0 comments on commit d11c399

Please sign in to comment.