Skip to content

Commit 741f33f

Browse files
committed
fix: #3 ArgumentCountError
1 parent e459288 commit 741f33f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CalendarEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CalendarEvent extends BaseDTO
4646
/** @var CalendarEventRecurrencePattern */
4747
public $recurring_pattern;
4848

49-
public function __construct($attributes)
49+
public function __construct($attributes = [])
5050
{
5151
parent::__construct($attributes);
5252

src/LaravelCalendarEventsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function register()
5454

5555
// Register the main class to use with the facade
5656
$this->app->singleton('laravel-calendar-events', function () {
57-
return new CalendarEvent;
57+
return new CalendarEvent([]);
5858
});
5959
}
6060
}

0 commit comments

Comments
 (0)