Skip to content

Commit 80a7f46

Browse files
committed
minor #1703 Updated parameter order to match order in the constructor (Robin Weller)
This PR was merged into the 2.x branch. Discussion ---------- Updated parameter order to match order in the constructor | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | none <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Updated parameter order to match order in the constructor to prevent showing a IDE warning. ![Screenshot 2024-04-09 at 10 01 52](https://github.com/symfony/ux/assets/76451246/5ec226e1-fffe-4713-b2fa-c466e44512de) <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 32e6550 updated parameter order to match order in the constructor
2 parents b539dd2 + 32e6550 commit 80a7f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ and ``dehydrateWith`` options on ``LiveProp``::
728728

729729
class ComponentWithAddressDto
730730
{
731-
#[LiveProp(dehydrateWith: 'dehydrateAddress', hydrateWith: 'hydrateAddress')]
731+
#[LiveProp(hydrateWith: 'hydrateAddress', dehydrateWith: 'dehydrateAddress')]
732732
public AddressDto $addressDto;
733733

734734
public function dehydrateAddress(AddressDto $address)

0 commit comments

Comments
 (0)