File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ private function resourceIdentifier(array $data): Structure\ResourceIdentifier
262
262
return new Structure \ResourceIdentifier ($ data ['type ' ], $ data ['id ' ]);
263
263
}
264
264
265
- private function relatedResourceIdentifier (Schema \Relationship $ field , $ model )
265
+ private function relatedResourceIdentifier (Schema \Relationship $ field , $ model ): Structure \ ResourceIdentifier
266
266
{
267
267
$ type = $ field ->getType ();
268
268
$ relatedResource = is_string ($ type )
@@ -287,7 +287,7 @@ private function meta(array $items, $model): array
287
287
}, $ items );
288
288
}
289
289
290
- private function key (array $ data )
290
+ private function key (array $ data ): string
291
291
{
292
292
return $ data ['type ' ].': ' .$ data ['id ' ];
293
293
}
You can’t perform that action at this time.
0 commit comments