Skip to content

Commit

Permalink
+ Added generics
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernathanreed authored Dec 13, 2024
1 parent 4eb767f commit d0991b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stubs/Relation.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
namespace Illuminate\Database\Eloquent\Relations;

/**
* @mixin \Illuminate\Database\Eloquent\Builder
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
* @template TResult
*
* @mixin \Illuminate\Database\Eloquent\Builder<TRelatedModel>
*/
abstract class Relation

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.2)

PHPDoc tag @template TDeclaringModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.2)

PHPDoc tag @template TRelatedModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.3)

PHPDoc tag @template TDeclaringModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.3)

PHPDoc tag @template TRelatedModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.4)

PHPDoc tag @template TDeclaringModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.

Check failure on line 12 in stubs/Relation.stub

View workflow job for this annotation

GitHub Actions / Static Analysis (8.4)

PHPDoc tag @template TRelatedModel for class Illuminate\Database\Eloquent\Relations\Relation has invalid bound type Illuminate\Database\Eloquent\Model.
{
Expand Down

0 comments on commit d0991b3

Please sign in to comment.