Skip to content

Commit 5e93e3f

Browse files
committed
Add defaults.
1 parent 4430a73 commit 5e93e3f

7 files changed

+21
-21
lines changed

laravel/src/SyncApi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public function withConstant(
6363
public function withCollection(
6464
string $modelClass,
6565
string $scopeName,
66-
?string $resourceClass,
67-
?string $controllerClass,
68-
?string $routeFragment,
66+
?string $resourceClass = null,
67+
?string $controllerClass = null,
68+
?string $routeFragment = null,
6969
): SyncApiCollection {
7070
$syncApiCollection = new SyncApiCollection(
7171
$this,

laravel/src/SyncApiCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ function withConstant(
102102
public function withCollection(
103103
string $modelClass,
104104
string $scopeName,
105-
?string $resourceClass,
106-
?string $controllerClass,
107-
?string $routeFragment,
105+
?string $resourceClass = null,
106+
?string $controllerClass = null,
107+
?string $routeFragment = null,
108108
): SyncApiCollection {
109109
return $this->syncApi->withCollection(
110110
$modelClass,

laravel/src/SyncApiCollectionMediaCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ function withConstant(
110110
public function withCollection(
111111
string $modelClass,
112112
string $scopeName,
113-
?string $resourceClass,
114-
?string $controllerClass,
115-
?string $routeFragment,
113+
?string $resourceClass = null,
114+
?string $controllerClass = null,
115+
?string $routeFragment = null,
116116
): SyncApiCollection {
117117
return $this->syncApiCollection->withCollection(
118118
$modelClass,

laravel/src/SyncApiConstant.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ function withConstant(
6565
function withCollection(
6666
string $modelClass,
6767
string $scopeName,
68-
?string $resourceClass,
69-
?string $controllerClass,
70-
?string $routeFragment,
68+
?string $resourceClass = null,
69+
?string $controllerClass = null,
70+
?string $routeFragment = null,
7171
): SyncApiCollection {
7272
return $this
7373
->syncApi

laravel/src/SyncApiEnum.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function withConstant(
6666
function withCollection(
6767
string $modelClass,
6868
string $scopeName,
69-
?string $resourceClass,
70-
?string $controllerClass,
71-
?string $routeFragment,
69+
?string $resourceClass = null,
70+
?string $controllerClass = null,
71+
?string $routeFragment = null,
7272
): SyncApiCollection {
7373
return $this
7474
->syncApi

laravel/src/SyncApiInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ function withConstant(
9898
function withCollection(
9999
string $modelClass,
100100
string $scopeName,
101-
?string $resourceClass,
102-
?string $controllerClass,
103-
?string $routeFragment,
101+
?string $resourceClass = null,
102+
?string $controllerClass = null,
103+
?string $routeFragment = null,
104104
): SyncApiCollection;
105105

106106
/**

laravel/src/SyncApiMe.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function withConstant(
6666
function withCollection(
6767
string $modelClass,
6868
string $scopeName,
69-
?string $resourceClass,
70-
?string $controllerClass,
71-
?string $routeFragment,
69+
?string $resourceClass = null,
70+
?string $controllerClass = null,
71+
?string $routeFragment = null,
7272
): SyncApiCollection {
7373
return $this
7474
->syncApi

0 commit comments

Comments
 (0)