Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Components] Convert to native return types#50852

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@wouterj
Copy link
Member

@wouterjwouterj commentedJul 2, 2023
edited by nicolas-grekas
Loading

QA
Branch?7.0
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

@nicolas-grekas
Copy link
Member

rebase unlocked + some fixes needed I guess

@nicolas-grekasnicolas-grekas changed the title[WIP] [Components] Convert to native return types[Components] Convert to native return typesJul 5, 2023
@nicolas-grekasnicolas-grekasforce-pushed theconvert-to-native-types-2 branch frome3220b5 to824f48aCompareJuly 5, 2023 12:38
nicolas-grekas added a commit that referenced this pull requestJul 5, 2023
…ribedEvents()` (nicolas-grekas)This PR was merged into the 6.4 branch.Discussion----------[Security] Add native return type to `Firewall::getSubscribedEvents()`| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Required to make#50852 green without breaking compat between v6 and v7.Commits-------8069f49 [Security] Add native return type to `Firewall::getSubscribedEvents()`
@nicolas-grekasnicolas-grekasforce-pushed theconvert-to-native-types-2 branch from824f48a toa250774CompareJuly 5, 2023 13:06
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I finished the PR.

I order to help third party bundles to be compatible with Symfony 7, I didn't add thevoid return type to the following interfaces (all listed in.github/expected-missing-return-types.diff):

  • src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php
  • src/Symfony/Component/DependencyInjection/Extension/PrependExtensionInterface.php
  • src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php

Please open an issue or send a PR if you think we should add more interfaces to this list.

Note that src/Symfony/Contracts/Service/ResetInterface.php also doesn't have a native type, and that's on purpose, to keep compatibility with implementations that do have a return value.

I also patched DebugClassLoader so that it doesn't skipvoid return types.

@nicolas-grekas
Copy link
Member

Thank you@wouterj.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@lyrixxlyrixxAwaiting requested review from lyrixxlyrixx is a code owner

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

@jderussejderusseAwaiting requested review from jderussejderusse is a code owner

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

@OskarStarkOskarStarkAwaiting requested review from OskarStarkOskarStark is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

7.0

Development

Successfully merging this pull request may close these issues.

3 participants

@wouterj@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp