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

[TypeInfo] use an EOL-agnostic approach to parse class uses#60909

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
stof merged 1 commit intosymfony:7.2fromxabbuh:issue-60906
Jun 27, 2025

Conversation

@xabbuh
Copy link
Member

QA
Branch?7.2
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#60906
LicenseMIT

@carsonbot

This comment was marked as outdated.

@carsonbotcarsonbot added this to the7.4 milestoneJun 26, 2025
@xabbuhxabbuh changed the base branch from7.4 to7.2June 26, 2025 09:35
}

publicfunctiontestCollectUsesWindowsLineEndings()
{
Copy link
Member

Choose a reason for hiding this comment

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

I suggest adding an assertion that theDummyWithUsesWindowsLineEndings.php file contains\r\n, to avoid having someone changing the line endings (by mistake or intentionally) and making this test useless.
This could happen for instance for contributors on Windows using git's newline conversion features (maybe we could even avoid that specific case with a.gitattributes telling git we want Windows line endings in this specific file)

OskarStark, xabbuh, and mtarld reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I added both the assertion inside the test as well as entries to the relevant.gitattributes files

@xabbuhxabbuhforce-pushed theissue-60906 branch 4 times, most recently frome803276 to76ad82bCompareJune 26, 2025 11:08
/src/Symfony/Component/Translation/Bridgeexport-ignore
/src/Symfony/Component/Emoji/Resources/data/*linguist-generated=true
/src/Symfony/Component/Intl/Resources/data/*/*linguist-generated=true
/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithUsesWindowsLineEndings.phptexteol=crlf
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this ifsrc/Symfony/Component/TypeInfo/.gitattributes already defines it

GromNaN reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Are you sure thatsrc/Symfony/Component/TypeInfo/.gitattributes is evaluated when the mono-repo is checked out?

Copy link
Member

Choose a reason for hiding this comment

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

yes. git respects all.gitattributes files, not just the file at the root of the repo (same for.gitignore files)

GromNaN and xabbuh reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

alright 👍 I reverted this change

@stofstof modified the milestones:7.4,7.2Jun 27, 2025
@stof
Copy link
Member

Thank you@xabbuh.

@stofstof merged commitcf0e627 intosymfony:7.2Jun 27, 2025
10 of 11 checks passed
@xabbuhxabbuh deleted the issue-60906 branchJune 27, 2025 15:08
This was referencedJun 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

@mtarldmtarldmtarld approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.2

Development

Successfully merging this pull request may close these issues.

[TypeInfo]TypeContextFactory::collectUses returns values with;

4 participants

@xabbuh@carsonbot@stof@mtarld

[8]ページ先頭

©2009-2025 Movatter.jp