Merge pull request #26005 from nextcloud/techdept/psalm/fix_invalid_check
Fix invalid check after constructing DateTime
This commit is contained in:
commit
bf5d5c57a3
|
@ -1455,10 +1455,6 @@ class ShareAPIController extends OCSController {
|
|||
throw new \Exception('Invalid date. Format must be YYYY-MM-DD');
|
||||
}
|
||||
|
||||
if ($date === false) {
|
||||
throw new \Exception('Invalid date. Format must be YYYY-MM-DD');
|
||||
}
|
||||
|
||||
$date->setTime(0, 0, 0);
|
||||
|
||||
return $date;
|
||||
|
|
Loading…
Reference in New Issue