{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/kohana/core/pull/160.diff","html_url":"https://github.com/kohana/core/pull/160","patch_url":"https://github.com/kohana/core/pull/160.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/f2ce4bb26f9bde5570b752194be50773?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f2ce4bb26f9bde5570b752194be50773","url":"https://api.github.com/users/acoulton","login":"acoulton","id":416566},"assignee":null,"updated_at":"2011-11-01T06:09:50Z","labels":[],"closed_at":null,"comments":6,"url":"https://api.github.com/repos/kohana/core/issues/160","body":"Per the forum discussion and [issue #4259](http://dev.kohanaframework.org/issues/4259), a patch that updates the method signature and comments for Arr::map to clarify how to use it with array-form callbacks.\r\n\r\nI think clarifying the method signature probably the best/only way to resolve, as I can't see how you could change the method to accept an array callback without entirely reverting the feature introduced by [#3381](http://dev.kohanaframework.org/issues/3381).","html_url":"https://github.com/kohana/core/issues/160","title":"Clarify syntax for passing array callbacks to Arr::map","number":160,"id":1645825,"created_at":"2011-09-14T17:47:50Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cfb4bb4cc300507aaf938fc8b658365c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cfb4bb4cc300507aaf938fc8b658365c","url":"https://api.github.com/users/kiall","login":"kiall","id":52713},"updated_at":"2011-11-01T06:09:50Z","url":"https://api.github.com/repos/kohana/core/issues/comments/2587217","body":"Looks like this failure wasn't actually that bug :)\r\n\r\n<pre>06:08:46  There was 1 error:\r\n06:08:46  \r\n06:08:46  1) Kohana_ArrTest::test_map with data set #1 ('strip_tags', array(array('<p>foobar</p>'), array('<p>foobar</p>')), NULL, array(array('foobar'), array('foobar')))\r\n06:08:46  Undefined variable: callback\r\n06:08:46  \r\n06:08:46  /var/lib/jenkins/jobs/kohana-3.2-pull/workspace/system/classes/kohana/arr.php:381\r\n06:08:46  \r\n06:08:46  FAILURES!\r\n06:08:46  Tests: 1214, Assertions: 2836, Errors: 1, Incomplete: 1, Skipped: 69.</pre>","id":2587217,"created_at":"2011-11-01T06:09:50Z"}}