Skip to content

[ErrorHandler] Reword return type deprecation message #42935

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 1 commit into from
Sep 10, 2021

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Sep 8, 2021

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

This deprecation is triggered for all classes (not only Symfony-ones), so we cannot be precise on when it will be added. However, we must do a "call to action" to prepare users for Symfony 6 (and potentially other package releases).

I do welcome suggestions for better wordings :) (i.e. is "php return type" clear?)

@wouterj

This comment has been minimized.

@wouterj wouterj force-pushed the return-type-deprecation-message branch from 10ea722 to 09c84bc Compare September 8, 2021 13:28
@wouterj
Copy link
Member Author

wouterj commented Sep 8, 2021

Thanks @derrabus.

I have no clue where the Psalm errors come from...

@derrabus
Copy link
Member

derrabus commented Sep 8, 2021

I have no clue where the Psalm errors come from...

Apparently, we need to install PhpUnitBridge before running Psalm. 🤔

@wouterj
Copy link
Member Author

wouterj commented Sep 8, 2021

But it doesn't show up in e.g. #42939 . So it must be that the changes in this PR cause Psalm to fail with these errors?

It is triggered for all classes (not only Symfony-ones), so we cannot be
precise on when it will be added. However, we must do a "call to action" to
prepare users for Symfony 6 (and potentially other package releases).
@wouterj wouterj force-pushed the return-type-deprecation-message branch from 09c84bc to b7d88cf Compare September 10, 2021 08:09
@nicolas-grekas
Copy link
Member

Thank you @wouterj.

@nicolas-grekas nicolas-grekas merged commit 1ee9727 into symfony:5.4 Sep 10, 2021
@wouterj wouterj deleted the return-type-deprecation-message branch September 10, 2021 08:27
nicolas-grekas added a commit that referenced this pull request Sep 30, 2021
…r missing return types on 5.3 (chalasr)

This PR was merged into the 5.3 branch.

Discussion
----------

[PhpUnitBridge] Fix skipping triggering file override for missing return types on 5.3

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

#43241 was merged in 5.3 instead of 5.4, but the deprecation notice was reworded on 5.4: #42935.

Commits
-------

c1034dc [PHPUnitBridge] Fix skipping triggering file override on 5.3
symfony-splitter pushed a commit to symfony/phpunit-bridge that referenced this pull request Sep 30, 2021
…r missing return types on 5.3 (chalasr)

This PR was merged into the 5.3 branch.

Discussion
----------

[PhpUnitBridge] Fix skipping triggering file override for missing return types on 5.3

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

symfony/symfony#43241 was merged in 5.3 instead of 5.4, but the deprecation notice was reworded on 5.4: symfony/symfony#42935.

Commits
-------

c1034dc940 [PHPUnitBridge] Fix skipping triggering file override on 5.3
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.

4 participants