The expression return array_key_exists(...ist[$methodName] : null could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
17
? $this->methodMappingList[$methodName]
18
: null
19
;
20
}
21
22
public function addMethodMapping(string $methodName, string $serviceId)