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

[Filesystem] improve error handling in lock()#22910

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:2.7fromxabbuh:issue-22882
May 28, 2017

Conversation

@xabbuh
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#22882
LicenseMIT
Doc PR

}

if (!$einstanceof IOException) {
$this->fail(sprintf('Expected IOException to be thrown, got %s instead.',get_class($e)));

Choose a reason for hiding this comment

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

is this required if we remove the two last "catch"?

Choose a reason for hiding this comment

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

hum ok, for cleanup

$this->fail(sprintf('Expected IOException to be thrown, got %s instead.',get_class($e)));
}

if (null !==$wrongMessage) {

Choose a reason for hiding this comment

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

assertNull?

if (!$this->handle) {
$error =error_get_last();
thrownewIOException($error['message'],0,null,$this->file);
if (null ===$error) {

Choose a reason for hiding this comment

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

is this possible at all? to me it shouldn't

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commit25381a2 intosymfony:2.7May 28, 2017
nicolas-grekas added a commit that referenced this pull requestMay 28, 2017
This PR was merged into the 2.7 branch.Discussion----------[Filesystem] improve error handling in lock()| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#22882| License       | MIT| Doc PR        |Commits-------25381a2 [Filesystem] improve error handling in lock()
@xabbuhxabbuh deleted the issue-22882 branchMay 28, 2017 12:49
This was referencedMay 29, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp