Skip to content

Prepare codebase for 2.0.0 with modern PHP type system and Symfony 7.2+ support and PHP 8.3+ support #14

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

Open
wants to merge 4 commits into
base: 2.x
Choose a base branch
from

Conversation

oddssoft
Copy link

Q A
Bugfix?
Breaks BC?
New feature? ✔️
Issues

This PR introduces compatibility with Symfony 7.2 and above.

It updates the internals to leverage PHP's modern type system features, such as using getType() instead of the deprecated getTypes() method in PropertyInfoExtractor.

The update ensures the library continues to function correctly with the latest Symfony versions while keeping the 1.x branch compatible with Symfony 6.4+.

Note
A separate PR will be submitted for the 2.x branch that includes deeper refactoring and full support for Symfony 7.3+ and newer type-info internals.

Sergey Lavrienya added 4 commits July 17, 2025 10:15
- Changed enum generation from $ref to inline enum with "type": "string" and explicit "enum" values
- Added proper nullable support for enums using ["string", "null"]
- Replaced invalid allOf usage for object types with correct $ref
- When nullable object, used oneOf with $ref and null type
@oddssoft
Copy link
Author

Hi @butschster! When you have a moment, could you please take a look? Thanks in advance!

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.

1 participant