Skip to content

PHP 8.1 compatibility & deprecation warnings#81

Open
kingIZZZY wants to merge 1 commit into
goshippo:masterfrom
kingIZZZY:kingIZZZY-php8-deprecation-warnings-1
Open

PHP 8.1 compatibility & deprecation warnings#81
kingIZZZY wants to merge 1 commit into
goshippo:masterfrom
kingIZZZY:kingIZZZY-php8-deprecation-warnings-1

Conversation

@kingIZZZY

Copy link
Copy Markdown

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
@sonarqubecloud

Copy link
Copy Markdown

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
Copy Markdown

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

@bporcelli

Copy link
Copy Markdown

I'd also love to see this merged.

@pbmang

pbmang commented May 17, 2023

Copy link
Copy Markdown

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

@assislucas

assislucas commented May 17, 2023

Copy link
Copy Markdown
Member

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

pbmang commented May 18, 2023

Copy link
Copy Markdown

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.

5 participants