Skip to content

Commit

Permalink
Update syntax to support PHP 8.2 (#61)
Browse files Browse the repository at this point in the history
## [1.9.5] - 2023-05-23

### Updated

- Update syntax to support PHP 8.2 (from PHP 7.2+ for now)
    * It requires enable in Magento: composer require alejociro/redirection
  • Loading branch information
freddiegar authored May 23, 2023
1 parent 7e2a194 commit e84bfdc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.9.5] - 2023-05-23

### Updated

- Update syntax to support PHP 8.2 (from PHP 7.2+ for now)
* It requires enable in Magento: composer require alejociro/redirection

## [1.9.4] - 2023-05-08

### Updated
Expand Down
9 changes: 7 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Data extends BaseData
*/
protected $mode;

/**
* @param InfoFactory
*/
protected $infoFactory;

public function __construct(
Logger $logger,
Context $context,
Expand All @@ -46,7 +51,7 @@ public function __construct(
Emulation $appEmulation,
Config $paymentConfig,
Initial $initialConfig,
InfoFactory $info
InfoFactory $infoFactory
) {
parent::__construct(
$context,
Expand All @@ -56,7 +61,7 @@ public function __construct(
$paymentConfig,
$initialConfig
);
$this->infoFactory = $info;
$this->infoFactory = $infoFactory;
$this->logger = $logger;
$this->version = '1.9.4';

Expand Down
2 changes: 1 addition & 1 deletion Model/CustomConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function getImage(): string
$image = $url;
} elseif ($this->checkDirectory($url)) {
$base = $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_MEDIA);
$image = "${base}${$url}";
$image = "{$base}{$url}";
} else {
$image = 'https://static.placetopay.com/' . $url . '.svg';
}
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
],
"require": {
"php": ">=7.2",
"ext-json": "*",
"alejociro/redirection": "^1.0.11"
"ext-json": "*"
},
"require-dev": {
"magento/magento-coding-standard": "*",
Expand Down

0 comments on commit e84bfdc

Please sign in to comment.