Skip to content

Purchase method without profile array key gives a deprecation notice for strtoupper() on null #183

Open
@jamieburchell

Description

Calling the purchase() method with an array which does not include the profile key produces the deprecation:

Deprecated: strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated
Omnipay\SagePay\Message\ServerAuthorizeRequest::getData at line 41

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions