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

Change Rings\Classes\Data: should either be compatible with ArrayAccess #1

Open
GuglielmoPepe opened this issue May 8, 2023 · 1 comment
Milestone

Comments

@GuglielmoPepe
Copy link
Owner

Deprecated: Return type of Rings\Classes\Data::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void

@GuglielmoPepe GuglielmoPepe added this to the 2.1.0 milestone May 8, 2023
@GuglielmoPepe
Copy link
Owner Author

These are the warnings raised with php 8.3:

  1. Return type of \Rings\Classes\Data::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool
  2. Return type of \Rings\Classes\Data::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed
  3. Return type of \Rings\Classes\Data::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void
  4. Return type of \Rings\Classes\Data::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void
  5. Return type of \Rings\Classes\Data::count() should either be compatible with Countable::count(): int
  6. Return type of \Rings\Classes\Data::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable
  7. Return type of \Rings\Classes\Data::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed
  8. Rings\Classes\Data implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize()

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

1 participant