+ Added generics #38
Annotations
11 errors
|
Run Static Analysis:
src/EloquentJoinClause.php#L26
PHPDoc tag @var for property Reedware\LaravelRelationJoins\EloquentJoinClause::$eloquent contains generic type Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model> but class Illuminate\Database\Eloquent\Builder is not generic.
|
Run Static Analysis:
src/EloquentJoinClause.php#L87
PHPDoc tag @return contains generic type Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model> but class Illuminate\Database\Eloquent\Builder is not generic.
|
Run Static Analysis:
src/EloquentJoinClause.php#L99
PHPDoc tag @return contains generic type Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model> but class Illuminate\Database\Eloquent\Builder is not generic.
|
Run Static Analysis:
src/EloquentJoinClause.php#L109
PHPDoc tag @return contains generic type Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model> but class Illuminate\Database\Eloquent\Builder is not generic.
|
Run Static Analysis:
src/EloquentJoinClause.php#L112
PHPDoc tag @var contains generic type Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model> but class Illuminate\Database\Eloquent\Builder is not generic.
|
Run Static Analysis:
src/RelationJoinQuery.php#L57
Method Reedware\LaravelRelationJoins\RelationJoinQuery::belongsTo() has parameter $relation with generic class Illuminate\Database\Eloquent\Relations\BelongsTo but does not specify its types: TRelatedModel, TDeclaringModel
|
Run Static Analysis:
src/RelationJoinQuery.php#L125
Offset 0 does not exist on array|null.
|
Run Static Analysis:
src/RelationJoinQuery.php#L142
Method Reedware\LaravelRelationJoins\RelationJoinQuery::hasOneOrMany() has parameter $relation with generic class Illuminate\Database\Eloquent\Relations\HasMany but does not specify its types: TRelatedModel, TDeclaringModel
|
Run Static Analysis:
src/RelationJoinQuery.php#L142
Method Reedware\LaravelRelationJoins\RelationJoinQuery::hasOneOrMany() has parameter $relation with generic class Illuminate\Database\Eloquent\Relations\HasOne but does not specify its types: TRelatedModel, TDeclaringModel
|
Run Static Analysis:
src/RelationJoinQuery.php#L142
Method Reedware\LaravelRelationJoins\RelationJoinQuery::hasOneOrMany() has parameter $relation with generic class Illuminate\Database\Eloquent\Relations\MorphMany but does not specify its types: TRelatedModel, TDeclaringModel
|
Loading