{"action":"created","comment":{"url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/comments/48920723","id":48920723,"diff_hunk":"@@ -264,7 +264,7 @@ private static function argToString($arg, Configuration $configuration, $level =\n         }\n \n         if (strlen($result) > $maxLength) {\n-            $result = substr($result, 0, self::MAX_SINGLE_ARG_STRING_LENGTH);\n+            $result = mb_strcut($result, 0, self::MAX_SINGLE_ARG_STRING_LENGTH);","path":"src/Airbrake/Notice.class.php","position":5,"original_position":5,"commit_id":"bd7a411df4dd9c58d6d2caacee9ced96c83fae8b","original_commit_id":"bd7a411df4dd9c58d6d2caacee9ced96c83fae8b","user":{"login":"asiebert","id":4426275,"avatar_url":"https://avatars.githubusercontent.com/u/4426275?v=3","gravatar_id":"","url":"https://api.github.com/users/asiebert","html_url":"https://github.com/asiebert","followers_url":"https://api.github.com/users/asiebert/followers","following_url":"https://api.github.com/users/asiebert/following{/other_user}","gists_url":"https://api.github.com/users/asiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/asiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asiebert/subscriptions","organizations_url":"https://api.github.com/users/asiebert/orgs","repos_url":"https://api.github.com/users/asiebert/repos","events_url":"https://api.github.com/users/asiebert/events{/privacy}","received_events_url":"https://api.github.com/users/asiebert/received_events","type":"User","site_admin":false},"body":"Looks like the max length is kind of arbitrary, so you could have kept `mb_substr` instead of replacing by `mb_strcut`… I prefer `cut` indeed, but it really doesn't matter anyway, and an argument here is pointless for ±1 char in some cases.","created_at":"2016-01-06T02:02:17Z","updated_at":"2016-01-06T02:02:17Z","html_url":"https://github.com/Work4Labs/php-airbrake/pull/26#discussion_r48920723","pull_request_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/comments/48920723"},"html":{"href":"https://github.com/Work4Labs/php-airbrake/pull/26#discussion_r48920723"},"pull_request":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26","id":54984876,"html_url":"https://github.com/Work4Labs/php-airbrake/pull/26","diff_url":"https://github.com/Work4Labs/php-airbrake/pull/26.diff","patch_url":"https://github.com/Work4Labs/php-airbrake/pull/26.patch","issue_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/26","number":26,"state":"open","locked":false,"title":"Don't cut strings in the middle of an utf-8 word (OPS-5232)","user":{"login":"olivierlefloch","id":66783,"avatar_url":"https://avatars.githubusercontent.com/u/66783?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlefloch","html_url":"https://github.com/olivierlefloch","followers_url":"https://api.github.com/users/olivierlefloch/followers","following_url":"https://api.github.com/users/olivierlefloch/following{/other_user}","gists_url":"https://api.github.com/users/olivierlefloch/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlefloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlefloch/subscriptions","organizations_url":"https://api.github.com/users/olivierlefloch/orgs","repos_url":"https://api.github.com/users/olivierlefloch/repos","events_url":"https://api.github.com/users/olivierlefloch/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlefloch/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-04T15:17:33Z","updated_at":"2016-01-06T02:02:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"877aae63b52397f719d2c361a22d841fe9b02d1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26/commits","review_comments_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26/comments","review_comment_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/26/comments","statuses_url":"https://api.github.com/repos/Work4Labs/php-airbrake/statuses/bd7a411df4dd9c58d6d2caacee9ced96c83fae8b","head":{"label":"Work4Labs:olefloch/OPS-5232/airbrake_utf8","ref":"olefloch/OPS-5232/airbrake_utf8","sha":"bd7a411df4dd9c58d6d2caacee9ced96c83fae8b","user":{"login":"Work4Labs","id":1202158,"avatar_url":"https://avatars.githubusercontent.com/u/1202158?v=3","gravatar_id":"","url":"https://api.github.com/users/Work4Labs","html_url":"https://github.com/Work4Labs","followers_url":"https://api.github.com/users/Work4Labs/followers","following_url":"https://api.github.com/users/Work4Labs/following{/other_user}","gists_url":"https://api.github.com/users/Work4Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Work4Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Work4Labs/subscriptions","organizations_url":"https://api.github.com/users/Work4Labs/orgs","repos_url":"https://api.github.com/users/Work4Labs/repos","events_url":"https://api.github.com/users/Work4Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Work4Labs/received_events","type":"Organization","site_admin":false},"repo":{"id":5403180,"name":"php-airbrake","full_name":"Work4Labs/php-airbrake","owner":{"login":"Work4Labs","id":1202158,"avatar_url":"https://avatars.githubusercontent.com/u/1202158?v=3","gravatar_id":"","url":"https://api.github.com/users/Work4Labs","html_url":"https://github.com/Work4Labs","followers_url":"https://api.github.com/users/Work4Labs/followers","following_url":"https://api.github.com/users/Work4Labs/following{/other_user}","gists_url":"https://api.github.com/users/Work4Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Work4Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Work4Labs/subscriptions","organizations_url":"https://api.github.com/users/Work4Labs/orgs","repos_url":"https://api.github.com/users/Work4Labs/repos","events_url":"https://api.github.com/users/Work4Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Work4Labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Work4Labs/php-airbrake","description":"A PHP 5.3/5.4 library for sending errors to the Sentry service.","fork":true,"url":"https://api.github.com/repos/Work4Labs/php-airbrake","forks_url":"https://api.github.com/repos/Work4Labs/php-airbrake/forks","keys_url":"https://api.github.com/repos/Work4Labs/php-airbrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Work4Labs/php-airbrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Work4Labs/php-airbrake/teams","hooks_url":"https://api.github.com/repos/Work4Labs/php-airbrake/hooks","issue_events_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/events{/number}","events_url":"https://api.github.com/repos/Work4Labs/php-airbrake/events","assignees_url":"https://api.github.com/repos/Work4Labs/php-airbrake/assignees{/user}","branches_url":"https://api.github.com/repos/Work4Labs/php-airbrake/branches{/branch}","tags_url":"https://api.github.com/repos/Work4Labs/php-airbrake/tags","blobs_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Work4Labs/php-airbrake/statuses/{sha}","languages_url":"https://api.github.com/repos/Work4Labs/php-airbrake/languages","stargazers_url":"https://api.github.com/repos/Work4Labs/php-airbrake/stargazers","contributors_url":"https://api.github.com/repos/Work4Labs/php-airbrake/contributors","subscribers_url":"https://api.github.com/repos/Work4Labs/php-airbrake/subscribers","subscription_url":"https://api.github.com/repos/Work4Labs/php-airbrake/subscription","commits_url":"https://api.github.com/repos/Work4Labs/php-airbrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/Work4Labs/php-airbrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/Work4Labs/php-airbrake/contents/{+path}","compare_url":"https://api.github.com/repos/Work4Labs/php-airbrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Work4Labs/php-airbrake/merges","archive_url":"https://api.github.com/repos/Work4Labs/php-airbrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Work4Labs/php-airbrake/downloads","issues_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues{/number}","pulls_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls{/number}","milestones_url":"https://api.github.com/repos/Work4Labs/php-airbrake/milestones{/number}","notifications_url":"https://api.github.com/repos/Work4Labs/php-airbrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Work4Labs/php-airbrake/labels{/name}","releases_url":"https://api.github.com/repos/Work4Labs/php-airbrake/releases{/id}","created_at":"2012-08-13T18:51:56Z","updated_at":"2015-09-04T23:52:37Z","pushed_at":"2016-01-04T15:17:34Z","git_url":"git://github.com/Work4Labs/php-airbrake.git","ssh_url":"git@github.com:Work4Labs/php-airbrake.git","clone_url":"https://github.com/Work4Labs/php-airbrake.git","svn_url":"https://github.com/Work4Labs/php-airbrake","homepage":"","size":151,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Work4Labs:master","ref":"master","sha":"4de0b4e0c2577a0596d0b2f6b07d52d439ed1223","user":{"login":"Work4Labs","id":1202158,"avatar_url":"https://avatars.githubusercontent.com/u/1202158?v=3","gravatar_id":"","url":"https://api.github.com/users/Work4Labs","html_url":"https://github.com/Work4Labs","followers_url":"https://api.github.com/users/Work4Labs/followers","following_url":"https://api.github.com/users/Work4Labs/following{/other_user}","gists_url":"https://api.github.com/users/Work4Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Work4Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Work4Labs/subscriptions","organizations_url":"https://api.github.com/users/Work4Labs/orgs","repos_url":"https://api.github.com/users/Work4Labs/repos","events_url":"https://api.github.com/users/Work4Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Work4Labs/received_events","type":"Organization","site_admin":false},"repo":{"id":5403180,"name":"php-airbrake","full_name":"Work4Labs/php-airbrake","owner":{"login":"Work4Labs","id":1202158,"avatar_url":"https://avatars.githubusercontent.com/u/1202158?v=3","gravatar_id":"","url":"https://api.github.com/users/Work4Labs","html_url":"https://github.com/Work4Labs","followers_url":"https://api.github.com/users/Work4Labs/followers","following_url":"https://api.github.com/users/Work4Labs/following{/other_user}","gists_url":"https://api.github.com/users/Work4Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Work4Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Work4Labs/subscriptions","organizations_url":"https://api.github.com/users/Work4Labs/orgs","repos_url":"https://api.github.com/users/Work4Labs/repos","events_url":"https://api.github.com/users/Work4Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Work4Labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Work4Labs/php-airbrake","description":"A PHP 5.3/5.4 library for sending errors to the Sentry service.","fork":true,"url":"https://api.github.com/repos/Work4Labs/php-airbrake","forks_url":"https://api.github.com/repos/Work4Labs/php-airbrake/forks","keys_url":"https://api.github.com/repos/Work4Labs/php-airbrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Work4Labs/php-airbrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Work4Labs/php-airbrake/teams","hooks_url":"https://api.github.com/repos/Work4Labs/php-airbrake/hooks","issue_events_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/events{/number}","events_url":"https://api.github.com/repos/Work4Labs/php-airbrake/events","assignees_url":"https://api.github.com/repos/Work4Labs/php-airbrake/assignees{/user}","branches_url":"https://api.github.com/repos/Work4Labs/php-airbrake/branches{/branch}","tags_url":"https://api.github.com/repos/Work4Labs/php-airbrake/tags","blobs_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Work4Labs/php-airbrake/statuses/{sha}","languages_url":"https://api.github.com/repos/Work4Labs/php-airbrake/languages","stargazers_url":"https://api.github.com/repos/Work4Labs/php-airbrake/stargazers","contributors_url":"https://api.github.com/repos/Work4Labs/php-airbrake/contributors","subscribers_url":"https://api.github.com/repos/Work4Labs/php-airbrake/subscribers","subscription_url":"https://api.github.com/repos/Work4Labs/php-airbrake/subscription","commits_url":"https://api.github.com/repos/Work4Labs/php-airbrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/Work4Labs/php-airbrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/Work4Labs/php-airbrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/Work4Labs/php-airbrake/contents/{+path}","compare_url":"https://api.github.com/repos/Work4Labs/php-airbrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Work4Labs/php-airbrake/merges","archive_url":"https://api.github.com/repos/Work4Labs/php-airbrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Work4Labs/php-airbrake/downloads","issues_url":"https://api.github.com/repos/Work4Labs/php-airbrake/issues{/number}","pulls_url":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls{/number}","milestones_url":"https://api.github.com/repos/Work4Labs/php-airbrake/milestones{/number}","notifications_url":"https://api.github.com/repos/Work4Labs/php-airbrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Work4Labs/php-airbrake/labels{/name}","releases_url":"https://api.github.com/repos/Work4Labs/php-airbrake/releases{/id}","created_at":"2012-08-13T18:51:56Z","updated_at":"2015-09-04T23:52:37Z","pushed_at":"2016-01-04T15:17:34Z","git_url":"git://github.com/Work4Labs/php-airbrake.git","ssh_url":"git@github.com:Work4Labs/php-airbrake.git","clone_url":"https://github.com/Work4Labs/php-airbrake.git","svn_url":"https://github.com/Work4Labs/php-airbrake","homepage":"","size":151,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26"},"html":{"href":"https://github.com/Work4Labs/php-airbrake/pull/26"},"issue":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/26"},"comments":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/Work4Labs/php-airbrake/statuses/bd7a411df4dd9c58d6d2caacee9ced96c83fae8b"}}}}