{"action":"created","issue":{"url":"https://api.github.com/repos/phpactor/phpactor/issues/796","repository_url":"https://api.github.com/repos/phpactor/phpactor","labels_url":"https://api.github.com/repos/phpactor/phpactor/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/phpactor/phpactor/issues/796/comments","events_url":"https://api.github.com/repos/phpactor/phpactor/issues/796/events","html_url":"https://github.com/phpactor/phpactor/pull/796","id":465345320,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk1NDA0ODcy","number":796,"title":"Preserve original path if available when generating new class","user":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-08T16:11:40Z","updated_at":"2019-07-08T22:44:47Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/phpactor/phpactor/pulls/796","html_url":"https://github.com/phpactor/phpactor/pull/796","diff_url":"https://github.com/phpactor/phpactor/pull/796.diff","patch_url":"https://github.com/phpactor/phpactor/pull/796.patch"},"body":"Note, this is lacking any test. Will see if I get time to add an integration test here.\r\n\r\n---\r\nThe ClassNew class can accept either an FQN or a file path, prior to\r\nthis fix if it was given a file path, it converted it to a class name,\r\nbut then used the class name to convert it back to the file path - which\r\nis not 100% reliable, as it's possible for a class to exist at multiple\r\nlocations.\r\n\r\nThis fix preserves the file location if given."},"comment":{"url":"https://api.github.com/repos/phpactor/phpactor/issues/comments/509419083","html_url":"https://github.com/phpactor/phpactor/pull/796#issuecomment-509419083","issue_url":"https://api.github.com/repos/phpactor/phpactor/issues/796","id":509419083,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTQxOTA4Mw==","user":{"login":"przepompownia","id":11404453,"node_id":"MDQ6VXNlcjExNDA0NDUz","avatar_url":"https://avatars3.githubusercontent.com/u/11404453?v=4","gravatar_id":"","url":"https://api.github.com/users/przepompownia","html_url":"https://github.com/przepompownia","followers_url":"https://api.github.com/users/przepompownia/followers","following_url":"https://api.github.com/users/przepompownia/following{/other_user}","gists_url":"https://api.github.com/users/przepompownia/gists{/gist_id}","starred_url":"https://api.github.com/users/przepompownia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/przepompownia/subscriptions","organizations_url":"https://api.github.com/users/przepompownia/orgs","repos_url":"https://api.github.com/users/przepompownia/repos","events_url":"https://api.github.com/users/przepompownia/events{/privacy}","received_events_url":"https://api.github.com/users/przepompownia/received_events","type":"User","site_admin":false},"created_at":"2019-07-08T22:44:47Z","updated_at":"2019-07-08T22:44:47Z","author_association":"NONE","body":"It works at least on my example. "}}
{"actor":{"display_login":"przepompownia"}}