It seems like $domain defined by parameter $domain on line 41 can also be of type object<BrightNucleus\ChainMail\Support\Domain>; however, BrightNucleus\Chainmail\...n\InvalidDomain::from() does only seem to accept string, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
45
}
46
47
$this->domain = (string)$domain;
48
}
49
50
/**
51
* Return the domain name.
52
*
53
* @return string
54
*/
55
public function getDomain()
56
{
57
return $this->domain;
58
}
59
60
/**
61
* Reutrn a string representation of the Domain object.
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.