{"action":"created","issue":{"url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/25","repository_url":"https://api.github.com/repos/maglnet/ComposerRequireChecker","labels_url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/25/comments","events_url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/25/events","html_url":"https://github.com/maglnet/ComposerRequireChecker/issues/25","id":242955118,"number":25,"title":"File location doesn't work","user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars1.githubusercontent.com/u/10462973?v=4","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-14T10:13:19Z","updated_at":"2017-08-21T08:18:58Z","closed_at":"2017-08-21T08:18:58Z","body":"Using something like this in `composer.json` doesn't work:\r\n\r\n```json\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"GeckoPackages\\\\PHPUnit\\\\\": \"src\\\\PHPUnit\"\r\n        }\r\n    },\r\n```\r\n\r\nThis does:\r\n\r\n```json\r\n\"autoload\": {\r\n        \"psr-4\": {\r\n            \"GeckoPackages\\\\PHPUnit\\\\\": \"src/PHPUnit/\"\r\n        }\r\n    },\r\n```\r\n\r\nWhat is also a bit tricky is that the tool ends with;\r\n```\r\n[12:07 PM]-[possum@zoo1]-[/home/possum/work/GeckoPHPUnit]-[git 2.0] \r\n$ ./vendor/bin/composer-require-checker check composer.json --config-file=/home/possum/work/GeckoPHPUnit/.composer-require-checker.json -vvv\r\nComposerRequireChecker v2.1-4-g74c9d72-dev\r\nThere were no unknown symbols found.\r\n```\r\n\r\nMight be better to do a sanity check if there were any symbols found at all and if not exit with an error that the configuration is off?\r\n\r\nMeta stuff for debugging:\r\n```\r\n[12:07 PM]-[possum@zoo1]-[/home/possum/work/GeckoPHPUnit]-[git 2.0] \r\n$ php -v\r\nPHP 7.1.7-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul  7 2017 09:41:45) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.1.7-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies\r\n    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans\r\n```\r\n\r\n```\r\n[12:07 PM]-[possum@zoo1]-[/home/possum/work/GeckoPHPUnit]-[git 2.0] \r\n$ composer -V\r\nComposer version 1.4.2 2017-05-17 08:17:52\r\n```\r\n\r\nThere is also a minor thingy about locating the passed configuration file when the tool is installed in `/usr/local/bin/` but run from other `cws` dir.\r\n\r\nI'll hope to prep. some fixes for this the upcoming days :)"},"comment":{"url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/comments/323677929","html_url":"https://github.com/maglnet/ComposerRequireChecker/issues/25#issuecomment-323677929","issue_url":"https://api.github.com/repos/maglnet/ComposerRequireChecker/issues/25","id":323677929,"user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars1.githubusercontent.com/u/10462973?v=4","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"created_at":"2017-08-21T08:18:58Z","updated_at":"2017-08-21T08:18:58Z","body":"The `\\\\` is json escaping of `\\`, so the issue not dealing with something like `a\\b\\test.php` correcty.\r\nClosing as discussion can be done better in the PR."}}
{"actor":{"display_login":"SpacePossum"}}