Skip to content

Commit

Permalink
Fix "int" not being allowed as parameter to itemGetter
Browse files Browse the repository at this point in the history
  • Loading branch information
__tom__ committed Jun 25, 2019
1 parent 71eb560 commit 6e147ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nspl/op.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function object($a) { return (object) $a; };

/**
* Returns a function that returns key value for a given array
* @param string $key Array key. Optionally it takes several keys as arguments and returns list of values
* @param string|int $key Array key. Optionally it takes several keys as arguments and returns list of values
* @return callable
*/
function itemGetter($key)
Expand Down

0 comments on commit 6e147ab

Please sign in to comment.