It seems like setAttribute() 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
It seems like getAttributeValue() 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
$this of type Cog\Laravel\Ban\Traits\HasBannedAtHelpers is incompatible with the type Cog\Contracts\Ban\Bannable expected by parameter $bannable of Cog\Contracts\Ban\BanService::ban().
(
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 Cog\Laravel\Ban\Traits\HasBannedAtHelpers is incompatible with the type Cog\Contracts\Ban\Bannable expected by parameter $bannable of Cog\Contracts\Ban\BanService::unban().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation