WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@ashvinim0003
Copy link

syntax error, unexpected ')'

Note :- Please follow the below points while attaching test cases document link below:

- If label Tested is added then test cases document URL is mandatory.

- Link added should be a valid URL and accessible throughout the org.

- If the branch name contains hotfix / revert by default the BVT workflow check will pass.

Test Case Document URL
Please paste test case document link here....

syntax error, unexpected ')'
Copy link

@lbajsarowicz lbajsarowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 There's a better way to handle logs.

$response->setHttpResponseCode(400);

$this->logger->critical("Razorpay Order: Payment already made for order :" . $receipt_id,);
$this->logger->critical("Razorpay Order: Payment already made for order :" . $receipt_id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please acknowledge the PSR-3 standard for LoggerInterface: https://www.php-fig.org/psr/psr-3/

You'll be able to find there's a 2nd argument in each logger method -- $context, you can pass an array of contextual information for an event.

Suggested change
$this->logger->critical("Razorpay Order: Payment already made for order :" . $receipt_id);
$this->logger->critical("Razorpay Order: Payment already made", ['order_id' => $receipt_id]);

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.

2 participants