mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(sharing): Don't change the type of the controller argument
[EA] New value type (\DateTime) is not matching the resolved parameter type and might introduce types-related false-positives. Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
3c507773b7
commit
4d748b9f5a
1 changed files with 2 additions and 2 deletions
|
|
@ -649,8 +649,8 @@ class ShareAPIController extends OCSController {
|
|||
//Expire date
|
||||
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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue