{"action":"created","issue":{"url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/5","labels_url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/5/comments","events_url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/5/events","html_url":"https://github.com/bdelespierre/underscore.php/issues/5","id":122274803,"number":5,"title":"PHP7 continue on intersect inside each generates a compile error","user":{"login":"sebathi","id":1434034,"avatar_url":"https://avatars.githubusercontent.com/u/1434034?v=3","gravatar_id":"","url":"https://api.github.com/users/sebathi","html_url":"https://github.com/sebathi","followers_url":"https://api.github.com/users/sebathi/followers","following_url":"https://api.github.com/users/sebathi/following{/other_user}","gists_url":"https://api.github.com/users/sebathi/gists{/gist_id}","starred_url":"https://api.github.com/users/sebathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebathi/subscriptions","organizations_url":"https://api.github.com/users/sebathi/orgs","repos_url":"https://api.github.com/users/sebathi/repos","events_url":"https://api.github.com/users/sebathi/events{/privacy}","received_events_url":"https://api.github.com/users/sebathi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T13:40:16Z","updated_at":"2015-12-15T20:34:41Z","closed_at":null,"body":"PHP Compile Error\r\n\r\n'continue' not in the 'loop' or 'switch' context\r\n\r\n```php\r\n        if (static::every($args, 'is_array'))\r\n            return array_values(call_user_func_array('array_intersect', $args));\r\n \r\n        $arrayLenght = static::size($array);\r\n        $result = [];\r\n        static::each($array, function($value, $index) use (& $result, $args, $argsLength) {\r\n            if (static::contains($result, $value))\r\n                continue;\r\n \r\n            for ($i=1; $i<$argsLength; $i++)\r\n                if (!static::contains($args[$i], $value))\r\n                    break;\r\n \r\n            if ($i == $argsLength)\r\n                $result[] = $value;\r\n        });\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/comments/164888810","html_url":"https://github.com/bdelespierre/underscore.php/issues/5#issuecomment-164888810","issue_url":"https://api.github.com/repos/bdelespierre/underscore.php/issues/5","id":164888810,"user":{"login":"sebathi","id":1434034,"avatar_url":"https://avatars.githubusercontent.com/u/1434034?v=3","gravatar_id":"","url":"https://api.github.com/users/sebathi","html_url":"https://github.com/sebathi","followers_url":"https://api.github.com/users/sebathi/followers","following_url":"https://api.github.com/users/sebathi/following{/other_user}","gists_url":"https://api.github.com/users/sebathi/gists{/gist_id}","starred_url":"https://api.github.com/users/sebathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebathi/subscriptions","organizations_url":"https://api.github.com/users/sebathi/orgs","repos_url":"https://api.github.com/users/sebathi/repos","events_url":"https://api.github.com/users/sebathi/events{/privacy}","received_events_url":"https://api.github.com/users/sebathi/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T20:34:41Z","updated_at":"2015-12-15T20:34:41Z","body":"Just change the continue for a return and it will work ;)"}}