setChecks(Spoofchecker::SINGLE_SCRIPT); if ($checker->isSuspicious($email)) { $this->error = new SpoofEmail(); } return $this->error === null; } /** * @return InvalidEmail */ public function getError() : ?InvalidEmail { return $this->error; } public function getWarnings() : array { return []; } }