Skip to content

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