Skip to content
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

[4.4] Add missing @return annotations #42246

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

These annotations are needed to notify that the return is going to change because a parent class/interface is already advertising that (eg using PHP 8.1's tentative return types).

We should add the #[ReturnTypeWillChange] attribute on many of those methods, but DebugClassLoader is not ready to do it yet.

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jul 23, 2021
@nicolas-grekas nicolas-grekas merged commit a925325 into symfony:4.4 Jul 23, 2021
@nicolas-grekas nicolas-grekas deleted the missing-annot44 branch July 23, 2021 15:53
nicolas-grekas added a commit that referenced this pull request Jul 23, 2021
This PR was merged into the 5.2 branch.

Discussion
----------

[5.2] Add missing ``@return`` annotations

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Same as #42246 for 5.2

Commits
-------

7c10e09 [5.2] Add missing ``@return`` annotations
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.

2 participants