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

[HttpFoundation] split FileException into specialized ones about upload handling#26475

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
fabpot merged 1 commit intosymfony:masterfromfmata:fileexception-split
Apr 3, 2018
Merged

Conversation

@fmata
Copy link
Contributor

@fmatafmata commentedMar 9, 2018
edited by nicolas-grekas
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#26411
LicenseMIT

@nicolas-grekasnicolas-grekas changed the title[HttpFoundation] split FileException into specialized ones about uplo…[HttpFoundation] split FileException into specialized ones about upload handlingMar 12, 2018
@nicolas-grekasnicolas-grekas added this to the4.1 milestoneMar 12, 2018
Copy link
Contributor

@soullivaneuhsoullivaneuh left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! 👍

*
* @author Florent Mata <florentmata@gmail.com>
*/
class CantWriteFileException extends FileException
Copy link
Member

Choose a reason for hiding this comment

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

I would nose Cant here but Cannot instead.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I wanted to follow the PHP constUPLOAD_ERR_CANT_WRITE to keep consistency, as others exceptions added in this PR. Are you sure of this change ?

Choose a reason for hiding this comment

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

@fmata can you please do the change? (and rebase meanwhile to fix the small conflict)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas rebased & updated

namespace Symfony\Component\HttpFoundation\File\Exception;

/**
* Thrown when an error UPLOAD_ERR_CANT_WRITE occurred with UploadedFile.
Copy link
Member

Choose a reason for hiding this comment

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

I would swap the word "error" and the name of the error.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Updated

@fmata
Copy link
ContributorAuthor

Status: Needs Review

@fabpot
Copy link
Member

Thank you@fmata.

@fabpotfabpot merged commit9e586cc intosymfony:masterApr 3, 2018
fabpot added a commit that referenced this pull requestApr 3, 2018
…ones about upload handling (fmata)This PR was merged into the 4.1-dev branch.Discussion----------[HttpFoundation] split FileException into specialized ones about upload handling| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#26411| License       | MITCommits-------9e586cc [HttpFoundation] split FileException into specialized ones about upload handling
@fmatafmata deleted the fileexception-split branchApril 3, 2018 06:07
@fabpotfabpot mentioned this pull requestMay 7, 2018
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

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot requested changes

@lyrixxlyrixxlyrixx approved these changes

+1 more reviewer

@soullivaneuhsoullivaneuhsoullivaneuh approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

7 participants

@fmata@fabpot@nicolas-grekas@lyrixx@soullivaneuh@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp