Skip to content

Commit

Permalink
+ Added generics
Browse files Browse the repository at this point in the history
tylernathanreed authored Dec 13, 2024

Verified

This commit was signed with the committer’s verified signature.
vasrem Vasilis Remmas
1 parent b1c8bf2 commit 41923bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stubs/BelongsToMany.stub
Original file line number Diff line number Diff line change
@@ -3,8 +3,14 @@
namespace Illuminate\Database\Eloquent\Relations;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;

/**
* @template TRelatedModel of Model
* @template TDeclaringModel of Model
*
* @extends Relation<TRelatedModel,TDeclaringModel,\Illuminate\Database\Eloquent\Collection<int,TRelatedModel>>
*
* @method class-string<Model> getPivotClass()
*/
class BelongsToMany

0 comments on commit 41923bd

Please sign in to comment.