Skip to content

Commit

Permalink
Correct log data type
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Jan 15, 2024
1 parent 57c53c4 commit 1bc106f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions upload/extension/opencart/admin/model/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ public function sendCurl(string $url, array $payment_data): array {
/**
* Log
*
* @param string $title
* @param ?string $data
* @param string $title
* @param mixed $data
*
* @return void
*/
public function log(string $title, ?string $data): void {
public function log(string $title, $data): void {
$_config = new \Opencart\System\Engine\Config();
$_config->addPath(DIR_EXTENSION . 'opayo/system/config/');
$_config->load('opayo');
Expand Down
6 changes: 3 additions & 3 deletions upload/extension/opencart/catalog/model/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,12 @@ public function sendCurl(string $url, array $payment_data, $i = null): array {
/**
* Log
*
* @param string $title
* @param ?string $data
* @param string $title
* @param mixed $data
*
* @return void
*/
public function log(string $title, ?string $data): void {
public function log(string $title, $data): void {
$_config = new \Opencart\System\Engine\Config();
$_config->addPath(DIR_EXTENSION . 'opayo/system/config/');
$_config->load('opayo');
Expand Down

0 comments on commit 1bc106f

Please sign in to comment.