Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

hotfix: Fixed return error in path in payment record #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WalderlanSena
Copy link

@WalderlanSena WalderlanSena commented Mar 18, 2019

When a new payment is made after it has already been added previously, the api was not returning a path in the stdclass assembly. I added a validation in the Error.php class to validate its existence. It could only be added the ternary operator of php 7, however to maintain compatibility with previous versions of the language, we needed to add the if.

There was 1 error:

1) App\Bundles\WirecardBundle\Tests\WirecardNewPaymentControllerTest::testCreateNewPayment
Undefined property: stdClass::$path

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant