Skip to content

Add containerProps and natively deprecate wrapperProps - #53

Merged
joshbruce merged 2 commits into
mainfrom
cp-joshbruce-control-guidance-fixes
Oct 15, 2026
Merged

joshbruce merged 2 commits into
mainfrom
cp-joshbruce-control-guidance-fixes

Conversation

@joshbruce

Copy link
Copy Markdown
Member

Rename the form container-property API without changing property handling or target elements.

Add containerProps() to TextInput, EmailInput, Password, TextArea, Select, and Fieldset. Keep wrapperProps() as a direct forwarding alias returning the result of containerProps(), marked #[\Deprecated(message: 'Use containerProps() instead.', since: '5.0')]. Native method deprecation is supported starting in PHP 8.4 and emits E_USER_DEPRECATED.

Move target-element documentation to the new API, update examples and existing tests, and document migration with alias retention throughout 5.x and removal no earlier than 6.0. Add regression tests for all six components and every Select mode verifying fluent return identity, identical rendered output, deprecation metadata, and the native runtime notice.

Validation: composer production passed on PHP 8.5.2 (source style, PHPStan, and 195 tests / 1,810 assertions). git --no-pager diff --check passed. PHP 8.4 was not run locally; the PR's existing CI matrix covers it.

List of issues fixed

N/A — user-requested follow-up to #44; no additional issue.

joshbruce and others added 2 commits October 15, 2026 12:30
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@joshbruce
joshbruce merged commit ca98bc1 into main Oct 15, 2026
2 checks passed
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