Skip to content

Commit 53ef604

Browse files
committed
Add default.
1 parent 944224e commit 53ef604

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

laravel/src/SyncApiCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
public function withMediaCollection(
5555
string $name,
5656
int $syncCapabilities,
57-
?callable $onUpsertOrDelete,
57+
?callable $onUpsertOrDelete = null,
5858
): SyncApiCollectionMediaCollection {
5959
$syncApiCollectionMediaCollection = new SyncApiCollectionMediaCollection(
6060
$this,

laravel/src/SyncApiCollectionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ interface SyncApiCollectionInterface extends SyncApiInterface
1818
function withMediaCollection(
1919
string $name,
2020
int $syncCapabilities,
21-
?callable $onUpsertOrDelete,
21+
?callable $onUpsertOrDelete = null,
2222
): SyncApiCollectionMediaCollection;
2323
}

laravel/src/SyncApiCollectionMediaCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct(
7070
public function withMediaCollection(
7171
string $name,
7272
int $syncCapabilities,
73-
?callable $onUpsertOrDelete,
73+
?callable $onUpsertOrDelete = null,
7474
): SyncApiCollectionMediaCollection {
7575
return $this->syncApiCollection->withMediaCollection(
7676
$name,

0 commit comments

Comments
 (0)