{"action":"opened","issue":{"url":"https://api.github.com/repos/deployphp/recipes/issues/107","repository_url":"https://api.github.com/repos/deployphp/recipes","labels_url":"https://api.github.com/repos/deployphp/recipes/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/recipes/issues/107/comments","events_url":"https://api.github.com/repos/deployphp/recipes/issues/107/events","html_url":"https://github.com/deployphp/recipes/issues/107","id":208722009,"number":107,"title":"Call to a member function desc() on null - local.php","user":{"login":"mryanb","id":3656391,"avatar_url":"https://avatars.githubusercontent.com/u/3656391?v=3","gravatar_id":"","url":"https://api.github.com/users/mryanb","html_url":"https://github.com/mryanb","followers_url":"https://api.github.com/users/mryanb/followers","following_url":"https://api.github.com/users/mryanb/following{/other_user}","gists_url":"https://api.github.com/users/mryanb/gists{/gist_id}","starred_url":"https://api.github.com/users/mryanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mryanb/subscriptions","organizations_url":"https://api.github.com/users/mryanb/orgs","repos_url":"https://api.github.com/users/mryanb/repos","events_url":"https://api.github.com/users/mryanb/events{/privacy}","received_events_url":"https://api.github.com/users/mryanb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-19T14:50:00Z","updated_at":"2017-02-19T14:50:00Z","closed_at":null,"body":"The following example from local.php fails on the `after` function with the error `Call to a member function desc() on null`\r\n\r\n```php\r\nset('local_release_path', '/tmp/my_application');\r\n\r\n/**\r\n * Main task\r\n */\r\ntask('deploy', [\r\n    'deploy:prepare',\r\n    'deploy:release',\r\n    'local:update_code',\r\n    'local:vendors',\r\n    'deploy:symlink',\r\n    'cleanup',\r\n])->desc('Deploy your project');\r\n\r\nafter('local:vendors', function() {\r\n    upload(get('local_release_path'), get('release_path'));\r\n})->desc('Upload local to remote');\r\n```"}}
{"actor":{"display_login":"mryanb"}}