Since $relationNames is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $relationNames to at least protected.
$this of type AlgoWeb\PODataLaravel\Mo...\MetadataRelationsTrait is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $model of AlgoWeb\PODataLaravel\Mo...ationshipsFromMethods().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation