From 509c504a493faea3c2eaf6e776ca27443a84b2da Mon Sep 17 00:00:00 2001 From: xushenjie Date: Fri, 28 Apr 2023 03:06:46 +0000 Subject: [PATCH] * Adjust todoTao::getCycleTodoDate () parameter types. --- module/todo/tao.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/todo/tao.php b/module/todo/tao.php index 68a1dcdb84..5e1c07a91c 100644 --- a/module/todo/tao.php +++ b/module/todo/tao.php @@ -158,13 +158,13 @@ class todoTao extends todoModel * 通过周期待办,获取要生成待办的日期 * * Gets the date by the cycle todo. - * @param object $todo - * @param object $lastCycle - * @param string $today + * @param object $todo + * @param object|string $lastCycle + * @param string $today * @access protected * @return false|string */ - protected function getCycleTodoDate(object $todo, object $lastCycle, string $today): false|string + protected function getCycleTodoDate(object $todo, object|string $lastCycle, string $today): false|string { $date = ''; if($todo->config->type == 'day')