{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1998","repository_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1998/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1998/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1998/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1998","id":160854588,"number":1998,"title":"Cache should use absolute pathname","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars.githubusercontent.com/u/152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-17T10:05:53Z","updated_at":"2016-06-17T13:29:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1998","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1998","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1998.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1998.patch"},"body":"When using a finder like this in the `.php_cs` file:\r\n```php\r\n$finder = Symfony\\CS\\Finder\\DefaultFinder::create()\r\n    ->in(__DIR__ . '/path_one')\r\n    ->in(__DIR__ . '/path_two')\r\n;\r\n```\r\nAnd in both path you have the same file name (e.g. `bootstrap.php`) the `php-cs-fix` keeps trying to fix the second one (and subsequents) because the cache is saved using the relative pathname instead of the absolute, and so this https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v1.11.4/Symfony/CS/FileCacheManager.php#L65-L67 keeps beeing triggered if the files are different."},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/226768911","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1998#issuecomment-226768911","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1998","id":226768911,"user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars.githubusercontent.com/u/2716794?v=3","gravatar_id":"","url":"https://api.github.com/users/keradus","html_url":"https://github.com/keradus","followers_url":"https://api.github.com/users/keradus/followers","following_url":"https://api.github.com/users/keradus/following{/other_user}","gists_url":"https://api.github.com/users/keradus/gists{/gist_id}","starred_url":"https://api.github.com/users/keradus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keradus/subscriptions","organizations_url":"https://api.github.com/users/keradus/orgs","repos_url":"https://api.github.com/users/keradus/repos","events_url":"https://api.github.com/users/keradus/events{/privacy}","received_events_url":"https://api.github.com/users/keradus/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T13:29:49Z","updated_at":"2016-06-17T13:29:49Z","body":"@localheinz \r\nI would really like to have paths relative. When I move whole project from one place to another I don't want to have a need to recreate the cache from scratch :(\r\n\r\n@Slamdunk \r\nwhat is the dangerous part?\r\n"}}
{"actor":{"display_login":"keradus"}}