]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(caldav): Assign initial value to typed CalendarQuery properties
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 20 Jul 2023 11:28:52 +0000 (13:28 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 20 Jul 2023 11:28:52 +0000 (13:28 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Calendar/CalendarQuery.php

index b06220e3ce495c9e5753446429994c77777bf414..3d37d9dc4677103597012879ad29738569976419 100644 (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 = [];