Skip to content

Fix incompatible override of getRedirectData() in FetchTransactionResponse#90

Open
nfourtythree wants to merge 2 commits intothephpleague:masterfrom
nfourtythree:master
Open

Fix incompatible override of getRedirectData() in FetchTransactionResponse#90
nfourtythree wants to merge 2 commits intothephpleague:masterfrom
nfourtythree:master

Conversation

@nfourtythree
Copy link
Copy Markdown

Currently FetchTransactionResponse is redeclaring the getRedirectData() method and always returning null.

This return type does not match the documented and implemented return in Omnipay Common's AbstractResponse

See here: https://github.com/thephpleague/omnipay-common/blob/master/src/Common/Message/AbstractResponse.php#L179-L187

This PR fixes the issue by removing the redeclaration of the method in the class as the inherited implementation does everything that is required.

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.

1 participant