{"action":"created","issue":{"url":"https://api.github.com/repos/joomla-framework/filter/issues/13","labels_url":"https://api.github.com/repos/joomla-framework/filter/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/joomla-framework/filter/issues/13/comments","events_url":"https://api.github.com/repos/joomla-framework/filter/issues/13/events","html_url":"https://github.com/joomla-framework/filter/pull/13","id":94418620,"number":13,"title":"Fix Array to String conversion notices in clean()","user":{"login":"photodude","id":10253980,"avatar_url":"https://avatars.githubusercontent.com/u/10253980?v=3","gravatar_id":"","url":"https://api.github.com/users/photodude","html_url":"https://github.com/photodude","followers_url":"https://api.github.com/users/photodude/followers","following_url":"https://api.github.com/users/photodude/following{/other_user}","gists_url":"https://api.github.com/users/photodude/gists{/gist_id}","starred_url":"https://api.github.com/users/photodude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photodude/subscriptions","organizations_url":"https://api.github.com/users/photodude/orgs","repos_url":"https://api.github.com/users/photodude/repos","events_url":"https://api.github.com/users/photodude/events{/privacy}","received_events_url":"https://api.github.com/users/photodude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-11T00:29:26Z","updated_at":"2015-12-05T18:22:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla-framework/filter/pulls/13","html_url":"https://github.com/joomla-framework/filter/pull/13","diff_url":"https://github.com/joomla-framework/filter/pull/13.diff","patch_url":"https://github.com/joomla-framework/filter/pull/13.patch"},"body":"Since it's already specified to \"Only use the first value\" we need to ~~set the $source to the first array value~~ use `preg_grep()` rather than `preg_match()` since `preg_grep()` takes an input array rather than just a single string to avoid Array to String conversion notices."},"comment":{"url":"https://api.github.com/repos/joomla-framework/filter/issues/comments/162232476","html_url":"https://github.com/joomla-framework/filter/pull/13#issuecomment-162232476","issue_url":"https://api.github.com/repos/joomla-framework/filter/issues/13","id":162232476,"user":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T18:22:45Z","updated_at":"2015-12-05T18:22:45Z","body":"The format is what `var_dump()` spits out (I just consolidated it into one line), but it roughly equates to `array(42, 0)`"}}