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

[Finder]  use proper keys to not override appended files#40023

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
nicolas-grekas merged 1 commit intosymfony:4.4fromxabbuh:issue-40022
Jan 28, 2021

Conversation

@xabbuh
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#40022
LicenseMIT
Doc PR

shyim, chr-hertel, and BenjaminPorquet reacted with heart emoji
@carsonbotcarsonbot added this to the4.4 milestoneJan 28, 2021
@carsonbotcarsonbot changed the title[Finder] use proper keys to not override appended files[Finder]  use proper keys to not override appended filesJan 28, 2021
foreach ($iteratoras$file) {
$it->append($fileinstanceof \SplFileInfo ?$file :new \SplFileInfo($file));
$file =$fileinstanceof \SplFileInfo ?$file :new \SplFileInfo($file);
$it[$file->getRealPath()] =$file;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This won't work for non-existing files. Not sure if that's an issue though.

Copy link
Member

Choose a reason for hiding this comment

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

Instead ofgetRealPath(), I suggest usinggetPathname(), which would also work for stream wrappers not supportingrealpath().

Non-existent files are OK to me. I don't think this is an expected supported case for the Finder anyway.

Copy link
Contributor

@shyimshyim left a comment

Choose a reason for hiding this comment

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

Our Swagger page does load again with this fix

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commite242832 intosymfony:4.4Jan 28, 2021
@xabbuhxabbuh deleted the issue-40022 branchJanuary 28, 2021 17:20
@fabpotfabpot mentioned this pull requestFeb 3, 2021
@fabpotfabpot mentioned this pull requestMar 4, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@jderussejderussejderusse approved these changes

+1 more reviewer

@shyimshyimshyim approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

6 participants

@xabbuh@nicolas-grekas@stof@jderusse@shyim@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp