Add missing $cookies argument/PHPdoc
Merge pull request #6504 from quetzyg/master

[5.0] Missing $cookies