$this of type ByTIC\MediaLibrary\HasMe...HasMediaPropertiesTrait is incompatible with the type Nip\Records\AbstractModels\Record expected by parameter $model of ByTIC\MediaLibrary\Model...\MediaProperties::for().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
$this of type ByTIC\MediaLibrary\HasMe...HasMediaPropertiesTrait is incompatible with the type Nip\Records\AbstractModels\Record expected by parameter $model of ByTIC\MediaLibrary\Model...Properties::createFor().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like hasRelation() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
35
if ($this->/** @scrutinizer ignore-call */ hasRelation('MediaProperties')) {
It seems like getRelation() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation