Skip to content

Commit dc1588d

Browse files
Adding nullable to remaining parameters
1 parent 65fdb9a commit dc1588d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function quickCreate(string $text)
8080
return $event->quickSave($text);
8181
}
8282

83-
public static function get(?CarbonInterface $startDateTime = null, CarbonInterface $endDateTime = null, array $queryParameters = [], string $calendarId = null): Collection
83+
public static function get(?CarbonInterface $startDateTime = null, ?CarbonInterface $endDateTime = null, array $queryParameters = [], string $calendarId = null): Collection
8484
{
8585
$googleCalendar = static::getGoogleCalendar($calendarId);
8686

src/GoogleCalendar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getCalendarId(): string
3232
/*
3333
* @link https://developers.google.com/google-apps/calendar/v3/reference/events/list
3434
*/
35-
public function listEvents(?CarbonInterface $startDateTime = null, CarbonInterface $endDateTime = null, array $queryParameters = []): Google_Service_Calendar_Events
35+
public function listEvents(?CarbonInterface $startDateTime = null, ?CarbonInterface $endDateTime = null, array $queryParameters = []): Google_Service_Calendar_Events
3636
{
3737
$parameters = [
3838
'singleEvents' => true,

0 commit comments

Comments
 (0)