diff --git a/laravel/src/SyncApiCollection.php b/laravel/src/SyncApiCollection.php index f1d53ff..500219b 100644 --- a/laravel/src/SyncApiCollection.php +++ b/laravel/src/SyncApiCollection.php @@ -54,7 +54,7 @@ public function __construct( public function withMediaCollection( string $name, int $syncCapabilities, - ?callable $onUpsertOrDelete, + ?callable $onUpsertOrDelete = null, ): SyncApiCollectionMediaCollection { $syncApiCollectionMediaCollection = new SyncApiCollectionMediaCollection( $this, diff --git a/laravel/src/SyncApiCollectionInterface.php b/laravel/src/SyncApiCollectionInterface.php index 3ee86d9..100cfb5 100644 --- a/laravel/src/SyncApiCollectionInterface.php +++ b/laravel/src/SyncApiCollectionInterface.php @@ -18,6 +18,6 @@ interface SyncApiCollectionInterface extends SyncApiInterface function withMediaCollection( string $name, int $syncCapabilities, - ?callable $onUpsertOrDelete, + ?callable $onUpsertOrDelete = null, ): SyncApiCollectionMediaCollection; } diff --git a/laravel/src/SyncApiCollectionMediaCollection.php b/laravel/src/SyncApiCollectionMediaCollection.php index 36ca683..fe7d164 100644 --- a/laravel/src/SyncApiCollectionMediaCollection.php +++ b/laravel/src/SyncApiCollectionMediaCollection.php @@ -70,7 +70,7 @@ public function __construct( public function withMediaCollection( string $name, int $syncCapabilities, - ?callable $onUpsertOrDelete, + ?callable $onUpsertOrDelete = null, ): SyncApiCollectionMediaCollection { return $this->syncApiCollection->withMediaCollection( $name,