Skip to content
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

Compatability for php8.1 #65

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

craig-mcmahon
Copy link

  • Add #[\ReturnTypeWillChange] to jsonSerialize to suppress notice of PHP Deprecated: Return type of Academe\SagePay\Psr7\Request\Model\Address::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
  • Upgrade phpunit and travis config to match php versions in composer.json

@judgej
Copy link
Member

judgej commented Sep 19, 2023

Awesome, thank you. I'll get on this.

@judgej judgej mentioned this pull request Sep 19, 2023
@judgej judgej merged commit 8568d4b into academe:master Sep 19, 2023
@judgej
Copy link
Member

judgej commented Sep 19, 2023

I've made a pre-release tagged here: https://github.com/academe/SagePay-Integration/releases/tag/2.1.0

If you would like to give it a try, then let me know how it goes so I can take this release further. I've added a number of other little fixes highlighted by PHP Stan, but not personally run the code yet against Opayo servers.

@craig-mcmahon
Copy link
Author

Thanks. The diff from 2.0.3 only shows the changes I added which work fine. 2.0.3...2.1.0

@judgej
Copy link
Member

judgej commented Sep 20, 2023

Not sure what happened there. I probably committed your main changes to the new branch, then forgot to commit my additionation changes. New release at https://github.com/academe/SagePay-Integration/releases/tag/2.1.1

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.

2 participants