Skip to content

[TwigComponent] Throws if exposed public prop is uninitialized #1780

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

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

smnandre
Copy link
Member

@smnandre smnandre commented Apr 24, 2024

Fix #1686, fix #1704

@kbond
Copy link
Member

kbond commented Apr 25, 2024

@cavasinf, does this sufficiently fix the two above issues for you?

@cavasinf
Copy link
Contributor

Doesn't resolve #1704 because it's more "doc" related.
But certainly #1686 👍

@smnandre
Copy link
Member Author

Ok to merge this PR while continuing the discussion about the remaining problems @cavasinf ?

@cavasinf
Copy link
Contributor

cavasinf commented Apr 30, 2024

Yes 👍
Remove the #1704 dependency as it will be closed with this PR 😉

@smnandre
Copy link
Member Author

(fabbot resolved in another PR)

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Apr 30, 2024
@kbond
Copy link
Member

kbond commented Apr 30, 2024

Thanks Simon.

@kbond kbond merged commit a1c74e4 into symfony:2.x Apr 30, 2024
36 of 37 checks passed
@norkunas
Copy link
Contributor

This was a BC break..
I have components that have some optional props, and not needed to be initialized if not used

kbond added a commit that referenced this pull request Jun 11, 2024
…property is unitialized (smnandre)

This PR was merged into the 2.x branch.

Discussion
----------

[TwigComponent][Fix] Revert throwing exception when public property is unitialized

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Issues        | Fix #1909
| License       | MIT

Revert #1780

If someone want to give another go at the original problem i'd appreciate.

Commits
-------

bf5959f [Fix] Revert throwing exception when public property is unitialized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer TwigComponent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TwigComponent] PreMount VS required props
5 participants