File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ class Address {
3838 * @param object $object
3939 */
4040 public function __construct (object $ object ) {
41- if (property_exists ($ object , "personal " )){ $ this ->personal = $ object ->personal ; }
42- if (property_exists ($ object , "mailbox " )){ $ this ->mailbox = $ object ->mailbox ; }
43- if (property_exists ($ object , "host " )){ $ this ->host = $ object ->host ; }
44- if (property_exists ($ object , "mail " )){ $ this ->mail = $ object ->mail ; }
45- if (property_exists ($ object , "full " )){ $ this ->full = $ object ->full ; }
41+ if (property_exists ($ object , "personal " )){ $ this ->personal = $ object ->personal ?? '' ; }
42+ if (property_exists ($ object , "mailbox " )){ $ this ->mailbox = $ object ->mailbox ?? '' ; }
43+ if (property_exists ($ object , "host " )){ $ this ->host = $ object ->host ?? '' ; }
44+ if (property_exists ($ object , "mail " )){ $ this ->mail = $ object ->mail ?? '' ; }
45+ if (property_exists ($ object , "full " )){ $ this ->full = $ object ->full ?? '' ; }
4646 }
4747
4848
You can’t perform that action at this time.
0 commit comments