function fname(string $str, \SoapClient $client) {
//...
}
function fname(string $str, \SoapClient $client) : int
{
//...
return 0;
}
/**
* @param $str string|null
* @param $client \SoapClien
**/
function fname(?string $str, \SoapClient $client) {
//...
}