- if ( is_object( $address ) && $address instanceof User ) {
- // Old calling format, now deprecated
- wfDeprecated( __METHOD__ . ' with a User object', '1.24' );
- $this->address = $address->getEmail();
- $this->name = $address->getName();
- $this->realName = $address->getRealName();
- } else {
- $this->address = strval( $address );
- $this->name = strval( $name );
- $this->realName = strval( $realName );
- }
+ $this->address = strval( $address );
+ $this->name = strval( $name );
+ $this->realName = strval( $realName );