File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 77use Swis \JsonApi \Client \Interfaces \DataInterface ;
88
99/**
10- * @template TKey of array-key
10+ * @template TKey of int
1111 * @template TValue of \Swis\JsonApi\Client\Interfaces\ItemInterface
1212 *
1313 * @extends \Illuminate\Support\Collection<TKey, TValue>
Original file line number Diff line number Diff line change 1010interface CollectionDocumentInterface extends DocumentInterface
1111{
1212 /**
13- * @return \Swis\JsonApi\Client\Collection<array-key , TItem>
13+ * @return \Swis\JsonApi\Client\Collection<int , TItem>
1414 */
1515 public function getData ();
1616}
Original file line number Diff line number Diff line change 1414interface ManyRelationInterface
1515{
1616 /**
17- * @param \Swis\JsonApi\Client\Collection<array-key , TItem>|null $data
17+ * @param \Swis\JsonApi\Client\Collection<int , TItem>|null $data
1818 * @return static
1919 */
2020 public function setData (?Collection $ data );
2121
2222 /**
23- * @return \Swis\JsonApi\Client\Collection<array-key , TItem>|null
23+ * @return \Swis\JsonApi\Client\Collection<int , TItem>|null
2424 */
2525 public function getData (): ?Collection ;
2626
@@ -33,7 +33,7 @@ public function getIncluded(): Collection;
3333 public function hasIncluded (): bool ;
3434
3535 /**
36- * @param \Swis\JsonApi\Client\Collection<array-key , TItem> $included
36+ * @param \Swis\JsonApi\Client\Collection<int , TItem> $included
3737 * @return static
3838 */
3939 public function associate (Collection $ included );
You can’t perform that action at this time.
0 commit comments