From 2304ca379a1098ad573024e3db64c3b342bab8f8 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 17 Feb 2017 16:59:35 +0100 Subject: [PATCH] PHPDoc fixes Found with Phan --- lib/Cake/Network/CakeResponse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index c0141a53ffc..596bc46f0e6 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -806,8 +806,8 @@ public function disableCache() { /** * Sets the correct headers to instruct the client to cache the response. * - * @param string $since a valid time since the response text has not been modified - * @param string $time a valid time for cache expiry + * @param string|int $since a valid time since the response text has not been modified + * @param string|int $time a valid time for cache expiry * @return void */ public function cache($since, $time = '+1 day') { @@ -1067,7 +1067,7 @@ public function etag($tag = null, $weak = false) { * Returns a DateTime object initialized at the $time param and using UTC * as timezone * - * @param string|DateTime $time Valid time string or unix timestamp or DateTime object. + * @param DateTime|int|string $time Valid time string or unix timestamp or DateTime object. * @return DateTime */ protected function _getUTCDate($time = null) {