Skip to content

Add return types to tests and final|internal|private methods #33279

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 2 commits into from
Aug 21, 2019

Conversation

nicolas-grekas
Copy link
Member

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#...

#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 :)

@nicolas-grekas nicolas-grekas added this to the next milestone Aug 21, 2019
@nicolas-grekas nicolas-grekas force-pushed the return-44t branch 2 times, most recently from b08036f to a858383 Compare August 21, 2019 14:39
@nicolas-grekas nicolas-grekas force-pushed the return-44t branch 2 times, most recently from c46dbe0 to 92aae3b Compare August 21, 2019 14:56
nicolas-grekas added a commit that referenced this pull request Aug 21, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Backported return type violation bugfixes

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #33228
| License       | MIT
| Doc PR        | N/A

Fixed some doc blocks and broken return values discovered while working on #33279.

Commits
-------

8877a01 Backported return type violation bugfixes.
nicolas-grekas added a commit that referenced this pull request Aug 21, 2019
…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
@nicolas-grekas nicolas-grekas merged commit c39fd9c into symfony:4.4 Aug 21, 2019
@nicolas-grekas nicolas-grekas deleted the return-44t branch August 23, 2019 11:45
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
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