{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19","id":32432028,"html_url":"https://github.com/fieryprophet/php-sandbox/pull/19","diff_url":"https://github.com/fieryprophet/php-sandbox/pull/19.diff","patch_url":"https://github.com/fieryprophet/php-sandbox/pull/19.patch","issue_url":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/19","number":19,"state":"open","locked":false,"title":"Declare a variable explicitly in order to prevent from E_NOTICE","user":{"login":"aazon","id":378058,"avatar_url":"https://avatars.githubusercontent.com/u/378058?v=3","gravatar_id":"","url":"https://api.github.com/users/aazon","html_url":"https://github.com/aazon","followers_url":"https://api.github.com/users/aazon/followers","following_url":"https://api.github.com/users/aazon/following{/other_user}","gists_url":"https://api.github.com/users/aazon/gists{/gist_id}","starred_url":"https://api.github.com/users/aazon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aazon/subscriptions","organizations_url":"https://api.github.com/users/aazon/orgs","repos_url":"https://api.github.com/users/aazon/repos","events_url":"https://api.github.com/users/aazon/events{/privacy}","received_events_url":"https://api.github.com/users/aazon/received_events","type":"User","site_admin":false},"body":"We have a lot of notices like the following one:\r\n```\r\nPHP Notice:  Only variable references should be returned by reference in /path_to_project/vendor/fieryprophet/php-sandbox/src/functions.php on line 44\r\n```\r\n\r\nWe are running php 5.6:\r\n```\r\nphp -v\r\nPHP 5.6.5 (cli) (built: Jan 21 2015 17:50:29)\r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies\r\n    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies\r\n```\r\n\r\nLooks like php does not like `return new Foo()` in functions like `&wrapByRef` and wants some variable to be returned instead.","created_at":"2015-04-01T15:48:58Z","updated_at":"2015-04-01T15:48:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19/commits","review_comments_url":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19/comments","review_comment_url":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/19/comments","statuses_url":"https://api.github.com/repos/fieryprophet/php-sandbox/statuses/af257b2040e377df690ed5eb4415087272d399f0","head":{"label":"aazon:master","ref":"master","sha":"af257b2040e377df690ed5eb4415087272d399f0","user":{"login":"aazon","id":378058,"avatar_url":"https://avatars.githubusercontent.com/u/378058?v=3","gravatar_id":"","url":"https://api.github.com/users/aazon","html_url":"https://github.com/aazon","followers_url":"https://api.github.com/users/aazon/followers","following_url":"https://api.github.com/users/aazon/following{/other_user}","gists_url":"https://api.github.com/users/aazon/gists{/gist_id}","starred_url":"https://api.github.com/users/aazon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aazon/subscriptions","organizations_url":"https://api.github.com/users/aazon/orgs","repos_url":"https://api.github.com/users/aazon/repos","events_url":"https://api.github.com/users/aazon/events{/privacy}","received_events_url":"https://api.github.com/users/aazon/received_events","type":"User","site_admin":false},"repo":{"id":33255897,"name":"php-sandbox","full_name":"aazon/php-sandbox","owner":{"login":"aazon","id":378058,"avatar_url":"https://avatars.githubusercontent.com/u/378058?v=3","gravatar_id":"","url":"https://api.github.com/users/aazon","html_url":"https://github.com/aazon","followers_url":"https://api.github.com/users/aazon/followers","following_url":"https://api.github.com/users/aazon/following{/other_user}","gists_url":"https://api.github.com/users/aazon/gists{/gist_id}","starred_url":"https://api.github.com/users/aazon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aazon/subscriptions","organizations_url":"https://api.github.com/users/aazon/orgs","repos_url":"https://api.github.com/users/aazon/repos","events_url":"https://api.github.com/users/aazon/events{/privacy}","received_events_url":"https://api.github.com/users/aazon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aazon/php-sandbox","description":"A full-scale PHP 5.3.2+ sandbox class that utilizes PHPParser to prevent sandboxed code from running unsafe code.","fork":true,"url":"https://api.github.com/repos/aazon/php-sandbox","forks_url":"https://api.github.com/repos/aazon/php-sandbox/forks","keys_url":"https://api.github.com/repos/aazon/php-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aazon/php-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aazon/php-sandbox/teams","hooks_url":"https://api.github.com/repos/aazon/php-sandbox/hooks","issue_events_url":"https://api.github.com/repos/aazon/php-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/aazon/php-sandbox/events","assignees_url":"https://api.github.com/repos/aazon/php-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/aazon/php-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/aazon/php-sandbox/tags","blobs_url":"https://api.github.com/repos/aazon/php-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aazon/php-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aazon/php-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/aazon/php-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aazon/php-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/aazon/php-sandbox/languages","stargazers_url":"https://api.github.com/repos/aazon/php-sandbox/stargazers","contributors_url":"https://api.github.com/repos/aazon/php-sandbox/contributors","subscribers_url":"https://api.github.com/repos/aazon/php-sandbox/subscribers","subscription_url":"https://api.github.com/repos/aazon/php-sandbox/subscription","commits_url":"https://api.github.com/repos/aazon/php-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/aazon/php-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/aazon/php-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/aazon/php-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/aazon/php-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/aazon/php-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aazon/php-sandbox/merges","archive_url":"https://api.github.com/repos/aazon/php-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aazon/php-sandbox/downloads","issues_url":"https://api.github.com/repos/aazon/php-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/aazon/php-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/aazon/php-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/aazon/php-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aazon/php-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/aazon/php-sandbox/releases{/id}","created_at":"2015-04-01T15:30:43Z","updated_at":"2015-04-01T15:41:35Z","pushed_at":"2015-04-01T15:41:35Z","git_url":"git://github.com/aazon/php-sandbox.git","ssh_url":"git@github.com:aazon/php-sandbox.git","clone_url":"https://github.com/aazon/php-sandbox.git","svn_url":"https://github.com/aazon/php-sandbox","homepage":"http://www.fieryprophet.com/phpsandbox","size":2404,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fieryprophet:master","ref":"master","sha":"4a30e96e1a525a4a6b74e24034d7f505133eb8cb","user":{"login":"fieryprophet","id":533700,"avatar_url":"https://avatars.githubusercontent.com/u/533700?v=3","gravatar_id":"","url":"https://api.github.com/users/fieryprophet","html_url":"https://github.com/fieryprophet","followers_url":"https://api.github.com/users/fieryprophet/followers","following_url":"https://api.github.com/users/fieryprophet/following{/other_user}","gists_url":"https://api.github.com/users/fieryprophet/gists{/gist_id}","starred_url":"https://api.github.com/users/fieryprophet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieryprophet/subscriptions","organizations_url":"https://api.github.com/users/fieryprophet/orgs","repos_url":"https://api.github.com/users/fieryprophet/repos","events_url":"https://api.github.com/users/fieryprophet/events{/privacy}","received_events_url":"https://api.github.com/users/fieryprophet/received_events","type":"User","site_admin":false},"repo":{"id":8442968,"name":"php-sandbox","full_name":"fieryprophet/php-sandbox","owner":{"login":"fieryprophet","id":533700,"avatar_url":"https://avatars.githubusercontent.com/u/533700?v=3","gravatar_id":"","url":"https://api.github.com/users/fieryprophet","html_url":"https://github.com/fieryprophet","followers_url":"https://api.github.com/users/fieryprophet/followers","following_url":"https://api.github.com/users/fieryprophet/following{/other_user}","gists_url":"https://api.github.com/users/fieryprophet/gists{/gist_id}","starred_url":"https://api.github.com/users/fieryprophet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieryprophet/subscriptions","organizations_url":"https://api.github.com/users/fieryprophet/orgs","repos_url":"https://api.github.com/users/fieryprophet/repos","events_url":"https://api.github.com/users/fieryprophet/events{/privacy}","received_events_url":"https://api.github.com/users/fieryprophet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fieryprophet/php-sandbox","description":"A full-scale PHP 5.3.2+ sandbox class that utilizes PHPParser to prevent sandboxed code from running unsafe code.","fork":false,"url":"https://api.github.com/repos/fieryprophet/php-sandbox","forks_url":"https://api.github.com/repos/fieryprophet/php-sandbox/forks","keys_url":"https://api.github.com/repos/fieryprophet/php-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fieryprophet/php-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fieryprophet/php-sandbox/teams","hooks_url":"https://api.github.com/repos/fieryprophet/php-sandbox/hooks","issue_events_url":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/fieryprophet/php-sandbox/events","assignees_url":"https://api.github.com/repos/fieryprophet/php-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/fieryprophet/php-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/fieryprophet/php-sandbox/tags","blobs_url":"https://api.github.com/repos/fieryprophet/php-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fieryprophet/php-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fieryprophet/php-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/fieryprophet/php-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fieryprophet/php-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/fieryprophet/php-sandbox/languages","stargazers_url":"https://api.github.com/repos/fieryprophet/php-sandbox/stargazers","contributors_url":"https://api.github.com/repos/fieryprophet/php-sandbox/contributors","subscribers_url":"https://api.github.com/repos/fieryprophet/php-sandbox/subscribers","subscription_url":"https://api.github.com/repos/fieryprophet/php-sandbox/subscription","commits_url":"https://api.github.com/repos/fieryprophet/php-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/fieryprophet/php-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/fieryprophet/php-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/fieryprophet/php-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/fieryprophet/php-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fieryprophet/php-sandbox/merges","archive_url":"https://api.github.com/repos/fieryprophet/php-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fieryprophet/php-sandbox/downloads","issues_url":"https://api.github.com/repos/fieryprophet/php-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/fieryprophet/php-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/fieryprophet/php-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fieryprophet/php-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/fieryprophet/php-sandbox/releases{/id}","created_at":"2013-02-26T21:57:31Z","updated_at":"2015-04-01T13:32:58Z","pushed_at":"2015-02-27T20:15:11Z","git_url":"git://github.com/fieryprophet/php-sandbox.git","ssh_url":"git@github.com:fieryprophet/php-sandbox.git","clone_url":"https://github.com/fieryprophet/php-sandbox.git","svn_url":"https://github.com/fieryprophet/php-sandbox","homepage":"http://www.fieryprophet.com/phpsandbox","size":2873,"stargazers_count":131,"watchers_count":131,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19"},"html":{"href":"https://github.com/fieryprophet/php-sandbox/pull/19"},"issue":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/19"},"comments":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/fieryprophet/php-sandbox/statuses/af257b2040e377df690ed5eb4415087272d399f0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}