The expression return $this->proxy 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...
79
}
80
81
82
/**
83
* @param Options $options
84
* @return $this
85
*/
86
public function setFromOptions(Options $options): Options
It seems like $options->getUserAgent() can also be of type null; however, parameter $userAgent of SteamMarketProviders\Par...Options::setUserAgent() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation