Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prepare for php 8.1
  • Loading branch information
Julius Smatavicius committed Feb 6, 2023
commit 454363a9a5b8244df8d92e244e584146856d147c
2 changes: 1 addition & 1 deletion src/Traits/HandlesRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function handleIncludes($item, $includes)
}
} else {
$included = BaseApiResource::make($item->$include);
$object = Str::before($nestedInclude, '.');
$object = Str::before($nestedInclude??'', '.');
if (isset($included->$object)) {
$relationshipResources[] = $this->handleIncludes($included, [$nestedInclude]);
}
Expand Down