-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Add types to private/final/internal methods and constructors #33266
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
[DependencyInjection] Add types to private/final/internal methods and constructors #33266
Conversation
Q | A |
---|---|
Branch? | 4.4 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #32179, #33228 |
License | MIT |
Doc PR | NA/ |
…hods (nicolas-grekas, derrabus) This PR was merged into the 4.4 branch. Discussion ---------- Add return types to tests and final|internal|private methods | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #33228 #33236 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> #33266 made me spot an issue with my logic to add return types with help from `DebugClassLoader`. Here is a completing PR, with the logic expanded to test classes. I need help to fix tests, /cc @derrabus :) Commits ------- c39fd9c Fixed tests on the Security and Form components fc186bb Add return types to tests and final|internal|private methods
Honestly, I'm not a big fan of adding |
Hey, I could have added As I already said on #33228, I might need a llittle guidance on when to add |
c21fbb2
to
767023f
Compare
:'D I did add them when a third-party dep encourages us to do so. I may have added more but I regret already :) |
src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php
Outdated
Show resolved
Hide resolved
767023f
to
fb74fbf
Compare
If you've heard someone weeping, it was probably me reverting all the |
fb74fbf
to
def0ac7
Compare
Thank you @derrabus. |
…l methods and constructors (derrabus) This PR was merged into the 4.4 branch. Discussion ---------- [DependencyInjection] Add types to private/final/internal methods and constructors | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32179, #33228 | License | MIT | Doc PR | NA/ Commits ------- def0ac7 Add types to private/final/internal methods and constructors.