Skip to content

Conversation

eluhr
Copy link

@eluhr eluhr commented Mar 5, 2025

The old version only checks if getTransactionParams() is null but not if $paymentType itself is null. If $paymentType is null, the old code would have caused an error (calling method on null). The new version first checks if $paymentType is set and returns an empty array if not.

The old version only checks if getTransactionParams() is null but not if $paymentType itself is null. If $paymentType is null, the old code would have caused an error (calling method on null).
The new version first checks if $paymentType is set and returns an empty array if not.
@eluhr eluhr requested a review from a team as a code owner March 5, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant