Skip to content

Commit 7b46c62

Browse files
committed
fix: phpstan
1 parent 9166fb6 commit 7b46c62

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Resources/Concerns/Relationships.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,20 @@ protected function toRelationships(Request $request): iterable
3838
}
3939

4040
/**
41-
* @internal
42-
*
4341
* @return array<string, string|callable>
42+
* @internal
4443
*/
4544
public function requestedRelationshipsLoad(Request $request): array
4645
{
4746
return Arr::flatDot($this->requestedRelationshipsLoadFromSchema($request, self::schema($request)));
4847
}
4948

49+
/**
50+
* @param Request $request
51+
* @param Skeleton $schema
52+
*
53+
* @return array<mixed>
54+
*/
5055
private function requestedRelationshipsLoadFromSchema(Request $request, Skeleton $schema): array
5156
{
5257
$loads = [];
@@ -128,7 +133,8 @@ private function mapRelationship(
128133
bool $included,
129134
Request $request,
130135
Relationship $relationship
131-
): array {
136+
): array
137+
{
132138
$resource = $relationship->toArray($request, $included);
133139

134140
if (isset($resource['included'])) {

0 commit comments

Comments
 (0)