Skip to content

Commit

Permalink
getServerInstance update to work with new SF domains
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaidas Bagdonas committed Jul 6, 2020
1 parent 9509a40 commit e961312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phpforce/SoapClient/Result/LoginResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getServerInstance()
}

$match = preg_match(
'/https:\/\/(?<instance>[^-]+)\.salesforce\.com/',
'/https:\/\/(?<instance>.+)\.my\.salesforce\.com/',
$this->serverUrl,
$matches
);
Expand Down

0 comments on commit e961312

Please sign in to comment.