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

PHP 8.1 compatibility & deprecation warnings #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kingIZZZY
Copy link

Full explanation: https://stackoverflow.com/a/71133750
Shippo_Object implements ArrayAccess: https://www.php.net/manual/en/class.arrayaccess.php

Warnings getting in PHP log:

PHP Deprecated: Return type of Shippo_Object::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/shippo/shippo-php/lib/Shippo/Object.php on line 109

PHP Deprecated: Return type of Shippo_Object::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/shippo/shippo-php/lib/Shippo/Object.php on line 99

Full explanation: https://stackoverflow.com/a/71133750

Warnings:

PHP Deprecated:  Return type of Shippo_Object::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/shippo/shippo-php/lib/Shippo/Object.php on line 109

PHP Deprecated:  Return type of Shippo_Object::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/shippo/shippo-php/lib/Shippo/Object.php on line 99

Shippo_Object implements ArrayAccess: https://www.php.net/manual/en/class.arrayaccess.php
@sonarcloud
Copy link

sonarcloud bot commented Jun 22, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ajohnson6494
Copy link

@smkrz or @assislucas Any chance that this could get merged in and tag for a new release?

@bporcelli
Copy link

I'd also love to see this merged.

@pbmang
Copy link

pbmang commented May 17, 2023

Not to be annoying, but wanted to hopefully put this back on the radar for @assislucas and @smkrz for review and merging.

@assislucas
Copy link
Member

assislucas commented May 17, 2023

Hi all, I have surfaced this to the right team at Shippo
We will look into validating this change and merging it, thank you for collaborating to our SDK.

@pbmang
Copy link

pbmang commented May 18, 2023

Thank you @assislucas! I'm sure I speak for everyone when I say that's a real MVP move! Looking forward to seeing this merged, and cleaning up some error messages.

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.

None yet

5 participants