[5.0] Missing $cookies

Add missing $cookies argument/PHPdoc