You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[InputKeyTo(KeyCase::X)] — Input key case conversion. Apply at class level to remap all incoming array keys before hydration, or at property level to override for a specific property. Conversion splits on camelCase/PascalCase boundaries, underscores, hyphens, and whitespace, then rejoins in the target case.
#[OutputKeyTo(KeyCase::X)] — Output key case conversion. Apply at class level to remap all serialized keys during toArray(true) / toJson(true), or at property level to override for a specific property.
InvalidKeyCaseException — Thrown at definition time when #[InputKeyTo] or #[OutputKeyTo] receives a value that is not a KeyCase enum instance (e.g. a plain string).