{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/169","labels_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/169/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/169/events","html_url":"https://github.com/FriendsOfPHP/Sami/issues/169","id":85510026,"number":169,"title":"Undefined index: relative_file (ClassReflection.php)","user":{"login":"Rask","id":98275,"avatar_url":"https://avatars.githubusercontent.com/u/98275?v=3","gravatar_id":"","url":"https://api.github.com/users/Rask","html_url":"https://github.com/Rask","followers_url":"https://api.github.com/users/Rask/followers","following_url":"https://api.github.com/users/Rask/following{/other_user}","gists_url":"https://api.github.com/users/Rask/gists{/gist_id}","starred_url":"https://api.github.com/users/Rask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rask/subscriptions","organizations_url":"https://api.github.com/users/Rask/orgs","repos_url":"https://api.github.com/users/Rask/repos","events_url":"https://api.github.com/users/Rask/events{/privacy}","received_events_url":"https://api.github.com/users/Rask/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T11:21:57Z","updated_at":"2015-06-05T11:53:58Z","closed_at":null,"body":"I'm trying to update my PHP documentation with:\r\n\r\n```\r\nphp vendor/sami/sami/sami.php update sami.php\r\n```\r\n\r\nand keep hitting this error:\r\n\r\n```\r\n[ErrorException]                                                                                                          \r\n  Notice: Undefined index: relative_file in ...snip.../vendor/sami/sami/Sami/Reflection/ClassReflection.php line 484 \r\n```\r\n\r\nSame happens with `--force`. Trace output with -vvv:\r\n\r\n```\r\nException trace:\r\n () at vendor/sami/sami/Sami/ErrorHandler.php:42\r\n Sami\\ErrorHandler->handle() at vendor/sami/sami/Sami/Reflection/ClassReflection.php:484\r\n Sami\\Reflection\\ClassReflection::fromArray() at vendor/sami/sami/Sami/Store/JsonStore.php:55\r\n Sami\\Store\\JsonStore->readProject() at vendor/sami/sami/Sami/Project.php:343\r\n Sami\\Project->read() at vendor/sami/sami/Sami/Project.php:151\r\n Sami\\Project->switchVersion() at vendor/sami/sami/Sami/Project.php:110\r\n Sami\\Project->update() at vendor/sami/sami/Sami/Console/Command/Command.php:79\r\n Sami\\Console\\Command\\Command->update() at vendor/sami/sami/Sami/Console/Command/UpdateCommand.php:52\r\n Sami\\Console\\Command\\UpdateCommand->execute() at vendor/symfony/console/Command/Command.php:259\r\n Symfony\\Component\\Console\\Command\\Command->run() at vendor/symfony/console/Application.php:878\r\n Symfony\\Component\\Console\\Application->doRunCommand() at vendor/symfony/console/Application.php:195\r\n Symfony\\Component\\Console\\Application->doRun() at vendor/symfony/console/Application.php:126\r\n Symfony\\Component\\Console\\Application->run() at vendor/sami/sami/sami.php:14\r\n```\r\n\r\n(Paths have been altered in the above trace.)\r\n\r\nThe project is nothing spectacular, a WordPress theme where `vendor` sits inside the theme's directory. No major* code changes have happened and the Sami error popped up out of the blue.\r\n\r\nI'm running Ubuntu 14.04, Apache 2.4 and PHP 5.5+. Composer and Sami are at their latest versions.\r\n\r\n(* not sure how major is major for Sami.)"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/comments/109267893","html_url":"https://github.com/FriendsOfPHP/Sami/issues/169#issuecomment-109267893","issue_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/169","id":109267893,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T11:53:58Z","updated_at":"2015-06-05T11:53:58Z","body":"The cache format has changed in recent Sami version (some keys added) and what's happening is that you're restoring cache from older Sami version.\r\n\r\nI recommend you deleting cache folder and you should fine."}}