{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/243","labels_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/243/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/243/events","html_url":"https://github.com/barryvdh/laravel-ide-helper/pull/243","id":98559799,"number":243,"title":"fix get_class($this) in relationship functions","user":{"login":"bebnev","id":8371521,"avatar_url":"https://avatars.githubusercontent.com/u/8371521?v=3","gravatar_id":"","url":"https://api.github.com/users/bebnev","html_url":"https://github.com/bebnev","followers_url":"https://api.github.com/users/bebnev/followers","following_url":"https://api.github.com/users/bebnev/following{/other_user}","gists_url":"https://api.github.com/users/bebnev/gists{/gist_id}","starred_url":"https://api.github.com/users/bebnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebnev/subscriptions","organizations_url":"https://api.github.com/users/bebnev/orgs","repos_url":"https://api.github.com/users/bebnev/repos","events_url":"https://api.github.com/users/bebnev/events{/privacy}","received_events_url":"https://api.github.com/users/bebnev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-01T20:28:10Z","updated_at":"2015-09-01T10:02:03Z","closed_at":"2015-08-09T13:04:14Z","pull_request":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/pulls/243","html_url":"https://github.com/barryvdh/laravel-ide-helper/pull/243","diff_url":"https://github.com/barryvdh/laravel-ide-helper/pull/243.diff","patch_url":"https://github.com/barryvdh/laravel-ide-helper/pull/243.patch"},"body":"The request fixes the issue #239 \r\n\r\nThe problem was in the strpos() in exploading argument list. It was looking for the first occurance of '(' which is in get_class($this), so it takes everything before ')' --> get_class($this. While in getClassName function strpos is checking - strpos($className, 'get_class($this)') !== false, so it fails. \r\nI have changed it to strrpos - in order to find the last occurance and explode the full argument list."},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/comments/136660443","html_url":"https://github.com/barryvdh/laravel-ide-helper/pull/243#issuecomment-136660443","issue_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/243","id":136660443,"user":{"login":"Adelf","id":2818394,"avatar_url":"https://avatars.githubusercontent.com/u/2818394?v=3","gravatar_id":"","url":"https://api.github.com/users/Adelf","html_url":"https://github.com/Adelf","followers_url":"https://api.github.com/users/Adelf/followers","following_url":"https://api.github.com/users/Adelf/following{/other_user}","gists_url":"https://api.github.com/users/Adelf/gists{/gist_id}","starred_url":"https://api.github.com/users/Adelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adelf/subscriptions","organizations_url":"https://api.github.com/users/Adelf/orgs","repos_url":"https://api.github.com/users/Adelf/repos","events_url":"https://api.github.com/users/Adelf/events{/privacy}","received_events_url":"https://api.github.com/users/Adelf/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T10:02:03Z","updated_at":"2015-09-01T10:02:03Z","body":"@bebnev sorry. You're right. My fault."}}