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

[ErrorHandler] Fix patch return type#58549

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

Closed
mtarld wants to merge1 commit intosymfony:7.2frommtarld:fix/ci-patch-return-type

Conversation

@mtarld
Copy link
Contributor

@mtarldmtarld commentedOct 12, 2024
edited
Loading

QA
Branch?7.2
Bug fix?yes
New feature?no
Deprecations?no
Issues
LicenseMIT

When trying to patch return types, the following

/** * @return self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT|array<self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT> */publicfunctiongetTargets():string|array{// ...}

becomes

/** * @return self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT|array<self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT> */publicfunctiongetTargets():array{// ...}

becauseself::XXX constants are considered invalid. And therefore only thearray is kept.
But this behavior is wrong, so this PR prevents the return type from changing if a constant is detected.

@carsonbotcarsonbot changed the title[ErrorHandler] Fix patch return typeFix patch return typeOct 12, 2024
@carsonbotcarsonbot added this to the7.2 milestoneOct 12, 2024
@carsonbotcarsonbot changed the titleFix patch return type[ErrorHandler] Fix patch return typeOct 12, 2024
@mtarldmtarldforce-pushed thefix/ci-patch-return-type branch from1557d9f to8bf2766CompareOctober 12, 2024 16:38
@xabbuh
Copy link
Member

see#58536

@mtarld
Copy link
ContributorAuthor

This much better, thanks!

@mtarldmtarld closed thisOct 12, 2024
@mtarldmtarld deleted the fix/ci-patch-return-type branchNovember 15, 2024 10:40
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

7.2

Development

Successfully merging this pull request may close these issues.

3 participants

@mtarld@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp