Skip to content

Commit

Permalink
fix: #3 ArgumentCountError
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Feb 15, 2022
1 parent e459288 commit 741f33f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CalendarEvent extends BaseDTO
/** @var CalendarEventRecurrencePattern */
public $recurring_pattern;

public function __construct($attributes)
public function __construct($attributes = [])
{
parent::__construct($attributes);

Expand Down
2 changes: 1 addition & 1 deletion src/LaravelCalendarEventsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function register()

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

0 comments on commit 741f33f

Please sign in to comment.