{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/3","repository_url":"https://api.github.com/repos/thephpleague/uri-manipulations","labels_url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/3/comments","events_url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/3/events","html_url":"https://github.com/thephpleague/uri-manipulations/issues/3","id":276195862,"number":3,"title":"Fatal error: Cannot use League\\Uri\\Interfaces\\Uri as Uri because the name is already in use","user":{"login":"SDKiller","id":2150916,"avatar_url":"https://avatars1.githubusercontent.com/u/2150916?v=4","gravatar_id":"","url":"https://api.github.com/users/SDKiller","html_url":"https://github.com/SDKiller","followers_url":"https://api.github.com/users/SDKiller/followers","following_url":"https://api.github.com/users/SDKiller/following{/other_user}","gists_url":"https://api.github.com/users/SDKiller/gists{/gist_id}","starred_url":"https://api.github.com/users/SDKiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDKiller/subscriptions","organizations_url":"https://api.github.com/users/SDKiller/orgs","repos_url":"https://api.github.com/users/SDKiller/repos","events_url":"https://api.github.com/users/SDKiller/events{/privacy}","received_events_url":"https://api.github.com/users/SDKiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-22T20:29:16Z","updated_at":"2017-11-22T20:53:46Z","closed_at":null,"author_association":"NONE","body":"## Issue summary\r\n\r\nNot sure where to post this issue here or to the `uri-schemes`.\r\n\r\nFatal error on the very project startup - I guess when autoloading happens:\r\n\r\n```\r\nFatal error: Cannot use League\\Uri\\Interfaces\\Uri as Uri because the name is already in use in ...\\ven\r\ndor\\league\\uri-manipulations\\src\\functions.php on line 17\r\n```\r\n\r\n### System informations\r\n\r\n_(In case of a bug report Please complete the table below)_\r\n\r\n| Information | Description |\r\n|--------------|---------|\r\n| League\\Uri\\Schemes version | |\r\n| PHP/HHVM version | 7.0  |\r\n| OS Platform |  Windows 7  |\r\n\r\n\r\n## Standalone code, or other way to reproduce the problem\r\n\r\nAfter I updated the whole package `\"league/uri\"` via composer.\r\n\r\n\r\nCurrently installed:\r\n\r\n```\r\n  - Installing league/uri-interfaces (1.0.0)\r\n  - Installing league/uri-hostname-parser (1.0.1)\r\n  - Installing league/uri-components (1.4.0)\r\n  - Installing league/uri-manipulations (1.2.0)\r\n  - Installing league/uri-parser (1.2.0)\r\n  - Installing league/uri-schemes (1.1.0)\r\n  - Installing league/uri (dev-master 8cd50f9)\r\n```\r\n\r\n\r\nI believe this error comes from: \r\n\r\nhttps://github.com/thephpleague/uri-schemes/blob/master/src/Schemes/deprecated.php#L57\r\n\r\n```\r\nclass_alias(LeagueUri\\Uri::class, Uri::class);\r\nif (!class_exists(Uri::class)) {\r\n    /**\r\n     * @deprecated use instead {@link LeagueUri\\Ws}\r\n     */\r\n    class Uri\r\n    {\r\n    }\r\n}\r\n```\r\n\r\nAt least, after I commented these strings fatal error on autoload has gone.\r\n"},"comment":{"url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/comments/346470127","html_url":"https://github.com/thephpleague/uri-manipulations/issues/3#issuecomment-346470127","issue_url":"https://api.github.com/repos/thephpleague/uri-manipulations/issues/3","id":346470127,"user":{"login":"SDKiller","id":2150916,"avatar_url":"https://avatars1.githubusercontent.com/u/2150916?v=4","gravatar_id":"","url":"https://api.github.com/users/SDKiller","html_url":"https://github.com/SDKiller","followers_url":"https://api.github.com/users/SDKiller/followers","following_url":"https://api.github.com/users/SDKiller/following{/other_user}","gists_url":"https://api.github.com/users/SDKiller/gists{/gist_id}","starred_url":"https://api.github.com/users/SDKiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDKiller/subscriptions","organizations_url":"https://api.github.com/users/SDKiller/orgs","repos_url":"https://api.github.com/users/SDKiller/repos","events_url":"https://api.github.com/users/SDKiller/events{/privacy}","received_events_url":"https://api.github.com/users/SDKiller/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T20:53:46Z","updated_at":"2017-11-22T20:53:46Z","author_association":"NONE","body":"To reproduce:\r\n\r\n1) create separate project with composer\r\n2) add only `league/uri` to require section\r\n3) create simple `index.php`:\r\n\r\n```\r\n<?php\r\n\r\nrequire 'vendor/autoload.php';\r\n\r\necho 'Done';\r\n\r\nexit();\r\n```\r\n\r\n4) run it"}}
{"actor":{"display_login":"SDKiller"}}