Skip to content

Commit

Permalink
Removec incompatible php 7 code
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Sep 6, 2024
1 parent cf7a7a7 commit 6652fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<descriptive locale="fr_FR">
<title>Paiement en carte bancaire avec Paybox</title>
</descriptive>
<version>1.2.4</version>
<version>1.2.5</version>
<author>
<name>Franck Allimant</name>
<email>franck@cqfdev.fr</email>
Expand Down
4 changes: 2 additions & 2 deletions Paybox.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ protected function getBilling(Order $order)
try {
$phoneNumberProto = $phoneUtil->parse($phoneNumber, $address->getCountry()->getIsoalpha2());

$phoneNationalNumber = $phoneNumberProto?->getNationalNumber();
$phoneCountryCode = $phoneNumberProto?->getCountryCode();
$phoneNationalNumber = $phoneNumberProto->getNationalNumber();
$phoneCountryCode = $phoneNumberProto->getCountryCode();
} catch (NumberParseException $e) {
Tlog::getInstance()->error('Failed to parse phone number "'.$phoneNumber.'", error is : '.$e->getMessage());
}
Expand Down

0 comments on commit 6652fd0

Please sign in to comment.