{"action":"created","comment":{"url":"https://api.github.com/repos/Respect/Validation/pulls/comments/36582632","id":36582632,"diff_hunk":"@@ -47,6 +47,28 @@ public static function stringify($value)\n         }\n     }\n \n+    /**\n+     * @param $value\n+     * @return string\n+     */\n+    public static function stringifyArray($value)\n+    {\n+        $items = array();\n+        foreach ($value as $val) {\n+            if (is_object($val)) {\n+                $items[] = self::stringifyObject($val);\n+            } elseif (is_string($val)) {\n+                $items[] = \"'$val'\";\n+            } else {\n+                $items[] = (string) $val;","path":"library/Exceptions/ValidationException.php","position":26,"original_position":26,"commit_id":"238b0bb18cf8efa6019cfd26aca9b2ad449f757d","original_commit_id":"238b0bb18cf8efa6019cfd26aca9b2ad449f757d","user":{"login":"cloudson","id":94096,"avatar_url":"https://avatars.githubusercontent.com/u/94096?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudson","html_url":"https://github.com/cloudson","followers_url":"https://api.github.com/users/cloudson/followers","following_url":"https://api.github.com/users/cloudson/following{/other_user}","gists_url":"https://api.github.com/users/cloudson/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudson/subscriptions","organizations_url":"https://api.github.com/users/cloudson/orgs","repos_url":"https://api.github.com/users/cloudson/repos","events_url":"https://api.github.com/users/cloudson/events{/privacy}","received_events_url":"https://api.github.com/users/cloudson/received_events","type":"User","site_admin":false},"body":"Maybe : \r\n\r\n```php \r\n$array = [    \r\n    1,\r\n    \"respect\",\r\n    [1,2 , [ \"respect\" ]]\r\n]\r\n```\r\ncould be printed as \r\n\r\n```\r\n(1, \"respect\", Array) \r\n```\r\nor we use recursion here with some way to define depth of recursion. ","created_at":"2015-08-08T22:45:34Z","updated_at":"2015-08-08T22:45:34Z","html_url":"https://github.com/Respect/Validation/pull/386#discussion_r36582632","pull_request_url":"https://api.github.com/repos/Respect/Validation/pulls/386","_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments/36582632"},"html":{"href":"https://github.com/Respect/Validation/pull/386#discussion_r36582632"},"pull_request":{"href":"https://api.github.com/repos/Respect/Validation/pulls/386"}}},"pull_request":{"url":"https://api.github.com/repos/Respect/Validation/pulls/386","id":41958567,"html_url":"https://github.com/Respect/Validation/pull/386","diff_url":"https://github.com/Respect/Validation/pull/386.diff","patch_url":"https://github.com/Respect/Validation/pull/386.patch","issue_url":"https://api.github.com/repos/Respect/Validation/issues/386","number":386,"state":"open","locked":false,"title":"Display possible values when using in() with array","user":{"login":"nochso","id":6887618,"avatar_url":"https://avatars.githubusercontent.com/u/6887618?v=3","gravatar_id":"","url":"https://api.github.com/users/nochso","html_url":"https://github.com/nochso","followers_url":"https://api.github.com/users/nochso/followers","following_url":"https://api.github.com/users/nochso/following{/other_user}","gists_url":"https://api.github.com/users/nochso/gists{/gist_id}","starred_url":"https://api.github.com/users/nochso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nochso/subscriptions","organizations_url":"https://api.github.com/users/nochso/orgs","repos_url":"https://api.github.com/users/nochso/repos","events_url":"https://api.github.com/users/nochso/events{/privacy}","received_events_url":"https://api.github.com/users/nochso/received_events","type":"User","site_admin":false},"body":"Fixes #385 ","created_at":"2015-08-08T18:48:08Z","updated_at":"2015-08-08T22:45:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4828eb0bb118ed194829985dabf879e82fa57f3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Respect/Validation/pulls/386/commits","review_comments_url":"https://api.github.com/repos/Respect/Validation/pulls/386/comments","review_comment_url":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Respect/Validation/issues/386/comments","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/238b0bb18cf8efa6019cfd26aca9b2ad449f757d","head":{"label":"nochso:stringify-array","ref":"stringify-array","sha":"238b0bb18cf8efa6019cfd26aca9b2ad449f757d","user":{"login":"nochso","id":6887618,"avatar_url":"https://avatars.githubusercontent.com/u/6887618?v=3","gravatar_id":"","url":"https://api.github.com/users/nochso","html_url":"https://github.com/nochso","followers_url":"https://api.github.com/users/nochso/followers","following_url":"https://api.github.com/users/nochso/following{/other_user}","gists_url":"https://api.github.com/users/nochso/gists{/gist_id}","starred_url":"https://api.github.com/users/nochso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nochso/subscriptions","organizations_url":"https://api.github.com/users/nochso/orgs","repos_url":"https://api.github.com/users/nochso/repos","events_url":"https://api.github.com/users/nochso/events{/privacy}","received_events_url":"https://api.github.com/users/nochso/received_events","type":"User","site_admin":false},"repo":{"id":40411971,"name":"Validation","full_name":"nochso/Validation","owner":{"login":"nochso","id":6887618,"avatar_url":"https://avatars.githubusercontent.com/u/6887618?v=3","gravatar_id":"","url":"https://api.github.com/users/nochso","html_url":"https://github.com/nochso","followers_url":"https://api.github.com/users/nochso/followers","following_url":"https://api.github.com/users/nochso/following{/other_user}","gists_url":"https://api.github.com/users/nochso/gists{/gist_id}","starred_url":"https://api.github.com/users/nochso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nochso/subscriptions","organizations_url":"https://api.github.com/users/nochso/orgs","repos_url":"https://api.github.com/users/nochso/repos","events_url":"https://api.github.com/users/nochso/events{/privacy}","received_events_url":"https://api.github.com/users/nochso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nochso/Validation","description":"The most awesome validation engine ever created for PHP","fork":true,"url":"https://api.github.com/repos/nochso/Validation","forks_url":"https://api.github.com/repos/nochso/Validation/forks","keys_url":"https://api.github.com/repos/nochso/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nochso/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nochso/Validation/teams","hooks_url":"https://api.github.com/repos/nochso/Validation/hooks","issue_events_url":"https://api.github.com/repos/nochso/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/nochso/Validation/events","assignees_url":"https://api.github.com/repos/nochso/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/nochso/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/nochso/Validation/tags","blobs_url":"https://api.github.com/repos/nochso/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nochso/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nochso/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/nochso/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nochso/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/nochso/Validation/languages","stargazers_url":"https://api.github.com/repos/nochso/Validation/stargazers","contributors_url":"https://api.github.com/repos/nochso/Validation/contributors","subscribers_url":"https://api.github.com/repos/nochso/Validation/subscribers","subscription_url":"https://api.github.com/repos/nochso/Validation/subscription","commits_url":"https://api.github.com/repos/nochso/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/nochso/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/nochso/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/nochso/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/nochso/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/nochso/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nochso/Validation/merges","archive_url":"https://api.github.com/repos/nochso/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nochso/Validation/downloads","issues_url":"https://api.github.com/repos/nochso/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/nochso/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/nochso/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/nochso/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nochso/Validation/labels{/name}","releases_url":"https://api.github.com/repos/nochso/Validation/releases{/id}","created_at":"2015-08-08T18:09:00Z","updated_at":"2015-08-08T18:09:00Z","pushed_at":"2015-08-08T21:56:11Z","git_url":"git://github.com/nochso/Validation.git","ssh_url":"git@github.com:nochso/Validation.git","clone_url":"https://github.com/nochso/Validation.git","svn_url":"https://github.com/nochso/Validation","homepage":"http://respect.li/Validation","size":5983,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Respect:master","ref":"master","sha":"743fafb31b44668f5db9a6e53ea925dc0b47a5c3","user":{"login":"Respect","id":354431,"avatar_url":"https://avatars.githubusercontent.com/u/354431?v=3","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"repo":{"id":931033,"name":"Validation","full_name":"Respect/Validation","owner":{"login":"Respect","id":354431,"avatar_url":"https://avatars.githubusercontent.com/u/354431?v=3","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Respect/Validation","description":"The most awesome validation engine ever created for PHP","fork":false,"url":"https://api.github.com/repos/Respect/Validation","forks_url":"https://api.github.com/repos/Respect/Validation/forks","keys_url":"https://api.github.com/repos/Respect/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Respect/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Respect/Validation/teams","hooks_url":"https://api.github.com/repos/Respect/Validation/hooks","issue_events_url":"https://api.github.com/repos/Respect/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/Respect/Validation/events","assignees_url":"https://api.github.com/repos/Respect/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/Respect/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/Respect/Validation/tags","blobs_url":"https://api.github.com/repos/Respect/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Respect/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Respect/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Respect/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/Respect/Validation/languages","stargazers_url":"https://api.github.com/repos/Respect/Validation/stargazers","contributors_url":"https://api.github.com/repos/Respect/Validation/contributors","subscribers_url":"https://api.github.com/repos/Respect/Validation/subscribers","subscription_url":"https://api.github.com/repos/Respect/Validation/subscription","commits_url":"https://api.github.com/repos/Respect/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Respect/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Respect/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Respect/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Respect/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/Respect/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Respect/Validation/merges","archive_url":"https://api.github.com/repos/Respect/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Respect/Validation/downloads","issues_url":"https://api.github.com/repos/Respect/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/Respect/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/Respect/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/Respect/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Respect/Validation/labels{/name}","releases_url":"https://api.github.com/repos/Respect/Validation/releases{/id}","created_at":"2010-09-22T16:08:05Z","updated_at":"2015-08-08T19:12:26Z","pushed_at":"2015-08-08T21:56:11Z","git_url":"git://github.com/Respect/Validation.git","ssh_url":"git@github.com:Respect/Validation.git","clone_url":"https://github.com/Respect/Validation.git","svn_url":"https://github.com/Respect/Validation","homepage":"http://respect.li/Validation","size":5983,"stargazers_count":2485,"watchers_count":2485,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":355,"mirror_url":null,"open_issues_count":33,"forks":355,"open_issues":33,"watchers":2485,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/386"},"html":{"href":"https://github.com/Respect/Validation/pull/386"},"issue":{"href":"https://api.github.com/repos/Respect/Validation/issues/386"},"comments":{"href":"https://api.github.com/repos/Respect/Validation/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/Respect/Validation/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Respect/Validation/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/Respect/Validation/statuses/238b0bb18cf8efa6019cfd26aca9b2ad449f757d"}}}}