Merge pull request #39504 from nextcloud/fix/caldav/access-typed-searchquery-property-without-init

fix(caldav): Assign initial value to typed CalendarQuery properties
This commit is contained in:
Anna 2023-07-20 23:49:12 +02:00 committed by GitHub
commit af6bb98b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,15 +30,15 @@ use OCP\Calendar\ICalendarQuery;
class CalendarQuery implements ICalendarQuery {
public array $searchProperties = [];
private ?string $searchPattern;
private ?string $searchPattern = null;
private array $options = [
'types' => [],
];
private ?int $offset;
private ?int $offset = null;
private ?int $limit;
private ?int $limit = null;
/** @var string[] */
private array $calendarUris = [];