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

Deprecated error whenever MailSlurp\Models is used #2

Open
maciej-wrzesinski opened this issue Sep 6, 2022 · 1 comment
Open

Deprecated error whenever MailSlurp\Models is used #2

maciej-wrzesinski opened this issue Sep 6, 2022 · 1 comment

Comments

@maciej-wrzesinski
Copy link

After upgrading PHP to 8.1, i have encountered a Deprecated error:
Deprecated: Return type of MailSlurp\Models\InboxDto::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in
This is due to offsetExists param $offset being an integer, while it should be mixed. This error that is in every \Models file and in several methods.

When would the upgrade of this package to php8.1 appear or at least could this mistake be fixed?

@jackmahoney
Copy link
Collaborator

Hi, sorry for the delay. Could you please try upgrading to the latest version of MailSlurp php client? https://packagist.org/packages/mailslurp/mailslurp-client-php

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

No branches or pull requests

2 participants