From 6387dcf6f0b39eed41f7b38358e2652848fad9e0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 May 2024 10:47:34 +0200 Subject: [PATCH] fix(API): Avoid changing variable types Signed-off-by: Joas Schilling --- lib/Share/Helper/ShareAPIController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Share/Helper/ShareAPIController.php b/lib/Share/Helper/ShareAPIController.php index 3e3a51ea460..8b215be2c53 100644 --- a/lib/Share/Helper/ShareAPIController.php +++ b/lib/Share/Helper/ShareAPIController.php @@ -87,8 +87,8 @@ public function createShare(IShare $share, string $shareWith, int $permissions, if ($expireDate !== '') { try { - $expireDate = $this->parseDate($expireDate); - $share->setExpirationDate($expireDate); + $expireDateTime = $this->parseDate($expireDate); + $share->setExpirationDate($expireDateTime); } catch (\Exception $e) { throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD')); }