-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purchase method without profile array key gives a deprecation notice for strtoupper() on null #183
Comments
I've got a fix for this, in theory. Try as I might, I can't seem to reproduce this error but just looking at this code, I can see how it would be happening. Any hints on reproduction for a test? This is an example of what I'm trying without teh fix, in the hope of at least seeing a deprecation warning to stdout:
|
I'm not sure why it can't be reproduced to be honest. The relevant part of the stack trace:
This was a MOTO transaction. The code I used (sensitive data replaced):
|
Calling the
purchase()
method with an array which does not include theprofile
key produces the deprecation:I don't think setting a profile is required (it's not in the example code) ?
PHP 8.1
league/omnipay v3.2.1
omnipay/sagepay 4.0.1
The text was updated successfully, but these errors were encountered: