{"comment":{"url":"https://api.github.com/repos/Kdyby/RequestStack/comments/12011469","html_url":"https://github.com/Kdyby/RequestStack/commit/77a160557f505a4d451cd10f60e40c6f11f564bd#commitcomment-12011469","id":12011469,"user":{"login":"Tharos","id":866325,"avatar_url":"https://avatars.githubusercontent.com/u/866325?v=3","gravatar_id":"","url":"https://api.github.com/users/Tharos","html_url":"https://github.com/Tharos","followers_url":"https://api.github.com/users/Tharos/followers","following_url":"https://api.github.com/users/Tharos/following{/other_user}","gists_url":"https://api.github.com/users/Tharos/gists{/gist_id}","starred_url":"https://api.github.com/users/Tharos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tharos/subscriptions","organizations_url":"https://api.github.com/users/Tharos/orgs","repos_url":"https://api.github.com/users/Tharos/repos","events_url":"https://api.github.com/users/Tharos/events{/privacy}","received_events_url":"https://api.github.com/users/Tharos/received_events","type":"User","site_admin":false},"position":14,"line":38,"path":"src/RequestStack.php","commit_id":"77a160557f505a4d451cd10f60e40c6f11f564bd","created_at":"2015-07-06T09:06:59Z","updated_at":"2015-07-06T09:06:59Z","body":"```php\r\n$stack = new  RequestStack;\r\n$stack->getUrl(); // or whatever… throws a PHP fatal error\r\n```\r\n\r\nVšechny ty public metody mohou skončit PHP fatal errorem. Výjimka by byla hezčí… Co chci říct je, že by bylo hezké nějak řízeně zacházet se stavem, kdy ve stacku ještě není pushnutý žádný request."}}