Skip to content

Commit

Permalink
Add default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Jul 23, 2024
1 parent 944224e commit 53ef604
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion laravel/src/SyncApiCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
public function withMediaCollection(
string $name,
int $syncCapabilities,
?callable $onUpsertOrDelete,
?callable $onUpsertOrDelete = null,
): SyncApiCollectionMediaCollection {
$syncApiCollectionMediaCollection = new SyncApiCollectionMediaCollection(
$this,
Expand Down
2 changes: 1 addition & 1 deletion laravel/src/SyncApiCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ interface SyncApiCollectionInterface extends SyncApiInterface
function withMediaCollection(
string $name,
int $syncCapabilities,
?callable $onUpsertOrDelete,
?callable $onUpsertOrDelete = null,
): SyncApiCollectionMediaCollection;
}
2 changes: 1 addition & 1 deletion laravel/src/SyncApiCollectionMediaCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53ef604

Please sign in to comment.