$this of type Awssat\Kabsa\Traits\KabsaRelationships is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $parent of Awssat\Kabsa\Relationshi...ToCached::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
13
return new BelongsToCached($related, /** @scrutinizer ignore-type */ $this, $foreignKey, $ownerKey);
Loading history...
14
}
15
16
public function hasManyKabsaRows($related, $foreignKey = null, $ownerKey = null)
17
{
18
return new HasManyCached($related, $this, $foreignKey, $ownerKey);
$this of type Awssat\Kabsa\Traits\KabsaRelationships is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $parent of Awssat\Kabsa\Relationshi...nyCached::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
18
return new HasManyCached($related, /** @scrutinizer ignore-type */ $this, $foreignKey, $ownerKey);