{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core-bundle/issues/310","labels_url":"https://api.github.com/repos/contao/core-bundle/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/contao/core-bundle/issues/310/comments","events_url":"https://api.github.com/repos/contao/core-bundle/issues/310/events","html_url":"https://github.com/contao/core-bundle/pull/310","id":94402287,"number":310,"title":"PHP 5.4 compat: Do not use function result within empty().","user":{"login":"discordier","id":940331,"avatar_url":"https://avatars.githubusercontent.com/u/940331?v=3","gravatar_id":"","url":"https://api.github.com/users/discordier","html_url":"https://github.com/discordier","followers_url":"https://api.github.com/users/discordier/followers","following_url":"https://api.github.com/users/discordier/following{/other_user}","gists_url":"https://api.github.com/users/discordier/gists{/gist_id}","starred_url":"https://api.github.com/users/discordier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordier/subscriptions","organizations_url":"https://api.github.com/users/discordier/orgs","repos_url":"https://api.github.com/users/discordier/repos","events_url":"https://api.github.com/users/discordier/events{/privacy}","received_events_url":"https://api.github.com/users/discordier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-10T22:01:24Z","updated_at":"2015-07-11T08:02:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contao/core-bundle/pulls/310","html_url":"https://github.com/contao/core-bundle/pull/310","diff_url":"https://github.com/contao/core-bundle/pull/310.diff","patch_url":"https://github.com/contao/core-bundle/pull/310.patch"},"body":"Function result values MUST NOT be used within `empty()` checks as `empty()` needs to access values by reference (in order to check whether that reference points to something that exists).\r\nPHP supports references to temporary values returned from functions from 5.5 on, as we are currently still supporting 5.4, we must not pass function results to `empty()`.\r\n\r\nSee also https://community.contao.org/de/showthread.php?58092-quot-Es-ist-ein-Fehler-aufgetreten-quot-nach-der-Templateeinbindung"},"comment":{"url":"https://api.github.com/repos/contao/core-bundle/issues/comments/120593782","html_url":"https://github.com/contao/core-bundle/pull/310#issuecomment-120593782","issue_url":"https://api.github.com/repos/contao/core-bundle/issues/310","id":120593782,"user":{"login":"fritzmg","id":4970961,"avatar_url":"https://avatars.githubusercontent.com/u/4970961?v=3","gravatar_id":"","url":"https://api.github.com/users/fritzmg","html_url":"https://github.com/fritzmg","followers_url":"https://api.github.com/users/fritzmg/followers","following_url":"https://api.github.com/users/fritzmg/following{/other_user}","gists_url":"https://api.github.com/users/fritzmg/gists{/gist_id}","starred_url":"https://api.github.com/users/fritzmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritzmg/subscriptions","organizations_url":"https://api.github.com/users/fritzmg/orgs","repos_url":"https://api.github.com/users/fritzmg/repos","events_url":"https://api.github.com/users/fritzmg/events{/privacy}","received_events_url":"https://api.github.com/users/fritzmg/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T08:02:38Z","updated_at":"2015-07-11T08:02:38Z","body":"Yep, I mentioned that in the other issue too. Using `count()` is not necessary."}}