The expression return $this->getAttributeValue('email') could return the type boolean|null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
The expression return $this->getAttributeValue('name') could return the type boolean|null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.