mirror of
https://github.com/nextcloud/server.git
synced 2026-07-16 05:13:10 -04:00
Merge pull request #26005 from nextcloud/techdept/psalm/fix_invalid_check
Fix invalid check after constructing DateTime
This commit is contained in:
commit
bf5d5c57a3
1 changed files with 0 additions and 4 deletions
|
|
@ -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 a new issue