-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Add the Required attribute #37545
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
Conversation
09e3ba2
to
caf5ba7
Compare
caf5ba7
to
64767ef
Compare
64767ef
to
c166a80
Compare
The PR has been updated to match the new attribute syntax and is now compatible with php 8.0.0-beta1. |
c166a80
to
91f0692
Compare
The PR has once again been updated because of a syntax change: php/php-src@8b37c1e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, looks nice, here are some minor comments
btw, if you want to have a look at making the PHP8 build green (or just have less failures), that'd be awesome :)
src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredMethodsPass.php
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Compiler/AutowireRequiredPropertiesPass.php
Outdated
Show resolved
Hide resolved
91f0692
to
9f7f27f
Compare
The failure on travis can be skipped by listing the fixture file in |
9f7f27f
to
ea26244
Compare
I've added the file there. 👍 |
Thank you @derrabus. |
This PR was merged into the 5.2-dev branch. Discussion ---------- Added missing changelog entries | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #37545 #37474 | License | MIT | Doc PR | N/A I've added the missing changelog entries for the two tickets above. Commits ------- 14642fb Added missing changelog entries.
This change is now covered in @rectorphp https://github.com/rectorphp/rector/pull/4348/files#diff-8e9faa1ff0eb70ba27a9918bf9b062b4 Let me know if we got it right 😉 |
@TomasVotruba Your fixture looks correct. In addition to the case that it covers, the |
@derrabus Thanks for feedback 👍 It was not clear from the tests, but property is supported as well. |
…errabus) This PR was merged into the 5.x branch. Discussion ---------- [DependencyInjection] Document the Required attribute This PR adds documentation for symfony/symfony#37545 and fixes #14189. Commits ------- 701f704 [DependencyInjection] Document the Required attribute.
This PR proposes a new attribute
#[Required]
that can be used instead of the@required
annotation.