Skip to content

Commit

Permalink
Use native return types without docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMuller committed Sep 13, 2024
1 parent 44b2389 commit 402f62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
*/
class Collection extends Base
{
/**
/*
* Generate a nested tree.
*
* @return $this
*/
public function toTree(string $childrenRelation = 'children'): static
{
Expand Down Expand Up @@ -46,7 +44,6 @@ public function toTree(string $childrenRelation = 'children'): static
);
}

// @phpstan-ignore return.type
return $tree;
}
}
5 changes: 1 addition & 4 deletions src/Eloquent/Graph/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
*/
class Collection extends Base
{
/**
/*
* Generate a nested tree.
*
* @return $this
*/
public function toTree(string $childrenRelation = 'children'): static
{
Expand Down Expand Up @@ -49,7 +47,6 @@ public function toTree(string $childrenRelation = 'children'): static
);
}

// @phpstan-ignore return.type
return $tree;
}
}

0 comments on commit 402f62d

Please sign in to comment.