Skip to content

Commit

Permalink
CI: omnipay doesn't have a master branch any more (#800)
Browse files Browse the repository at this point in the history
* CI: omnipay doesn't have a master branch any more

See #795

* use version of silverstripe-omnipay for SS4 and PHP7.4+
* fix failing tests
* fix linting errors
  • Loading branch information
wernerkrauss authored Oct 27, 2023
1 parent bf5bf26 commit 9b3d529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
with:
composer_require_extra:
phpunit/phpunit:^9.5
silverstripe/silverstripe-omnipay:dev-master
silverstripe/silverstripe-omnipay:3.x-dev
php-http/discovery:^1.18.1
4 changes: 2 additions & 2 deletions src/Checkout/Component/AddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public function getExistingAddressFields()
$addressoptions = $member->AddressBook()->sort('Created', 'DESC')->map('ID', 'toString')->toArray();

$translatedAddressType = $this->addresstype;
if ($this->addresstype === 'Billing'){
if ($this->addresstype === 'Billing') {
$translatedAddressType = _t('SilverShop\Model\Address.BillingAddress', $this->addresstype);
}
if ($this->addresstype === 'Shipping'){
if ($this->addresstype === 'Shipping') {
$translatedAddressType = _t('SilverShop\Model\Address.ShippingAddress', $this->addresstype);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Checkout/OrderEmailNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function buildEmail($template, $subject)
*
* @return bool|string
*/
public function sendEmail(string $template, string $subject, bool $copyToAdmin = true)
public function sendEmail(string $template, string $subject, ?bool $copyToAdmin = true)
{
SSViewer::set_themes(Config::inst()->get(SSViewer::class, 'themes'));

Expand Down

0 comments on commit 9b3d529

Please sign in to comment.