The expression return $this->provider->...ed($name)->getMapping() could return the type null which is incompatible with the type-hinted return AmaTeam\ElasticSearch\AP...g\ClassMappingInterface. Consider adding an additional type-check to rule them out.
Loading history...
34
}
35
36
public function find(string $name): ?ClassMappingInterface