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

ArrayAccess Deprecations #22

Open
mbopp opened this issue Apr 6, 2022 · 1 comment
Open

ArrayAccess Deprecations #22

mbopp opened this issue Apr 6, 2022 · 1 comment
Assignees

Comments

@mbopp
Copy link

mbopp commented Apr 6, 2022

I receive a lot of deprecation notices when running tests (using PHP 8.1).

All are similar to this:

Deprecated: Return type of ultracart\v2\models\CartItem::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Suppressing these deprecation notices is my typical course of action, however these do not seem to be affected by any attempt of preventing log channels, etc.

Is there anything I can do in my code locally to suppress these noisy messages?

@perrytew
Copy link
Contributor

Hey. We use Swagger to generate our SDKs from a YAML file we build based on our REST API. I'll review the templates they're using to auto-generate our models and see what I can do to eliminate the warning completely. I'll be in touch.

@perrytew perrytew self-assigned this May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants