Skip to content

[Config] replace CPP with non-nullable property #53753

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
Feb 4, 2024
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 4, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

Using constructor property promotion for the $metaFile property does not make much sense for two reasons:

  • We need to declare it nullable just for the sake of the constructor accepting null while the property itself will always receive a string.
  • The initially set value is immediately overwritten in the constructor.

Using constructor property promotion for the $metaFile property does not
make much sense for two reasons:

* We need to declare it nullable just for the sake of the constructor
  accepting null while the property itself will always receive a string.
* The initially set value is immediately overwritten in the constructor.
@fabpot
Copy link
Member

fabpot commented Feb 4, 2024

Thank you @xabbuh.

@fabpot fabpot merged commit f450a49 into symfony:7.1 Feb 4, 2024
@xabbuh xabbuh deleted the pr-52043 branch February 4, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants