Skip to content

Fix: Add ReturnTypeWillChange attribute #276

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

Closed

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Jul 28, 2023

Summary

  • adds ReturnTypeWillChange attributes to jsonSerialize() methods of classes implementing the JsonSerializable interface

Follows #242.

πŸ’β€β™‚οΈ This suppresses deprecation notices when running tests with phpunit/phpunit using these classes or using these classes in an environment where deprecations are logged.

For reference, see https://www.php.net/manual/en/class.returntypewillchange.php.

Test plan

  • n/a

Issues

  • n/a

@localheinz localheinz force-pushed the fix/return-type-will-change branch from f26fe67 to 13b19db Compare August 29, 2023 15:12
@localheinz
Copy link
Contributor Author

Cherry-picked into #273.

@localheinz localheinz closed this Aug 29, 2023
@localheinz localheinz deleted the fix/return-type-will-change branch August 29, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy