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

Types class constant #133

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Types class constant #133

merged 1 commit into from
Mar 11, 2025

Conversation

JulienRAVIA
Copy link
Contributor

@JulienRAVIA JulienRAVIA commented Mar 10, 2025

Nouveau comportement

Pour avoir une classe avec les types "supportés" par le serializer, et éviter les typos.

Ainsi on aurait un truc comme ceci :

#[Rest\Attribute(name: '@id', type: Types::STRING)]
private $id;

Même si on dirait que c'est assez freestyle les types, et qu'on fait rien de particulier avec sauf avec les datetime. (je sais pas)

@JulienRAVIA JulienRAVIA merged commit 797c219 into main Mar 11, 2025
6 checks passed
@JulienRAVIA JulienRAVIA deleted the jr-feat-types branch March 11, 2025 07:51
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.

2 participants