{"action":"opened","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/504","repository_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper","labels_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/504/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/504/events","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/504","id":227340664,"number":504,"title":"Cookie Queue class mismatch with real function","user":{"login":"Daviex","id":745720,"avatar_url":"https://avatars0.githubusercontent.com/u/745720?v=3","gravatar_id":"","url":"https://api.github.com/users/Daviex","html_url":"https://github.com/Daviex","followers_url":"https://api.github.com/users/Daviex/followers","following_url":"https://api.github.com/users/Daviex/following{/other_user}","gists_url":"https://api.github.com/users/Daviex/gists{/gist_id}","starred_url":"https://api.github.com/users/Daviex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daviex/subscriptions","organizations_url":"https://api.github.com/users/Daviex/orgs","repos_url":"https://api.github.com/users/Daviex/repos","events_url":"https://api.github.com/users/Daviex/events{/privacy}","received_events_url":"https://api.github.com/users/Daviex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-09T11:55:04Z","updated_at":"2017-05-09T11:55:04Z","closed_at":null,"body":"Hello.\r\n\r\nI'm here to report this bug: when I access the Cookie::queue method in class Cookie, it automatically bring me to CookieJar::queue, that accepts a params type (...$parameters), BUT, when the _ide_helper.php is created, this parameter request become a simple $parameters, and the PHPDoc is signed as an array type, so there's a Mismatch and a warning when using this function.\r\n\r\nPersonally, I fixed it into the _ide_helper.php directly by adding the dots before the variable, but I hope you can fix this directly into your code.\r\n`\r\n        /**\r\n         * Queue a cookie to send with the next response.\r\n         *\r\n         * @param array $parameters\r\n         * @return void \r\n         * @static \r\n         */\r\n        public static function queue(...$parameters)\r\n        {\r\n            \\Illuminate\\Cookie\\CookieJar::queue($parameters);\r\n        }\r\n`\r\n\r\n\r\nThanks\r\n\r\nps. Hope I wrote it comprensible"}}
{"actor":{"display_login":"Daviex"}}