Skip to content

[3.0.x.x] Fixed PHP 8 warning Laybuy model#13244

Merged
danielkerr merged 1 commit intoopencart:3.0.x.xfrom
condor2:patch-1
Dec 19, 2023
Merged

[3.0.x.x] Fixed PHP 8 warning Laybuy model#13244
danielkerr merged 1 commit intoopencart:3.0.x.xfrom
condor2:patch-1

Conversation

@condor2
Copy link
Copy Markdown
Contributor

@condor2 condor2 commented Dec 19, 2023

No description provided.

@danielkerr danielkerr merged commit 5206a4b into opencart:3.0.x.x Dec 19, 2023
@condor2 condor2 deleted the patch-1 branch December 19, 2023 10:51
@ADDCreative
Copy link
Copy Markdown
Contributor

This is wrong. You can't just change the order of the parameters, as it's used in the controller.

$this->model_extension_payment_laybuy->addTransaction($transaction_report, 1);

$this->model_extension_payment_laybuy->addTransaction($transaction_report, $status);

Since $data is not be optional. You just need.

public function addTransaction($data, $status) {

@mhcwebdesign
Copy link
Copy Markdown
Contributor

@ADDCreative : You are right, I have now fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants