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

Catch \Throwable#18812

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
Closed

Conversation

@fprochazka
Copy link
Contributor

@fprochazkafprochazka commentedMay 19, 2016
edited
Loading

QA
Branch?2.3, 2.7, 2.8, 3.0
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?Yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

Related#18765,#15949

AyrtonRicardo and o5 reacted with thumbs up emoji
This was referencedMay 19, 2016
@nicolas-grekas
Copy link
Member

👍

throw$e;
}catch (\Throwable$e) {
$this->loading =false;
throw$e;

Choose a reason for hiding this comment

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

in php7 isn't possible implements\Throwable interface only extends\Exception class, so why not use only one catch with\Throwable?

Choose a reason for hiding this comment

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

because we support PHP5 also

Copy link

@AyrtonRicardoAyrtonRicardoMay 20, 2016
edited
Loading

Choose a reason for hiding this comment

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

I got it

fabpot added a commit that referenced this pull requestMay 23, 2016
This PR was merged into the 2.7 branch.Discussion----------Catch \Throwable| Q             | A| ------------- | ---| Branch?       | 2.7, 2.8, 3.0| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | Yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aRelated#18765,#15949Depends on#18812Commits-------103526b Catch \Throwable
fabpot added a commit that referenced this pull requestMay 23, 2016
This PR was merged into the 2.8 branch.Discussion----------Catch \Throwable| Q             | A| ------------- | ---| Branch?       | 2.8, 3.0| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | Mostly!| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aThe first commit is based on#15949Depends on#18813,#18812----I'm new to symfony, so I'm not sure where are all the places where it makes sense to actually catch the throwable and where not. I added most places that seemed logical and when I wasn't sure, I added it anyway. I'm hoping you guys (and girls?) can point out the places where the catch should not be added, I'll fix it and then I can create several PR's for the older branches. A lot of this IMHO should go also to 3.0.Commits-------de671f4 Catch \Throwable
symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull requestMay 23, 2016
This PR was merged into the 2.8 branch.Discussion----------Catch \Throwable| Q             | A| ------------- | ---| Branch?       | 2.8, 3.0| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | Mostly!| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aThe first commit is based onsymfony/symfony#15949Depends onsymfony/symfony#18813,symfony/symfony#18812----I'm new to symfony, so I'm not sure where are all the places where it makes sense to actually catch the throwable and where not. I added most places that seemed logical and when I wasn't sure, I added it anyway. I'm hoping you guys (and girls?) can point out the places where the catch should not be added, I'll fix it and then I can create several PR's for the older branches. A lot of this IMHO should go also to 3.0.Commits-------de671f4 Catch \Throwable
@nicolas-grekas
Copy link
Member

Thank you@fprochazka.

nicolas-grekas added a commit that referenced this pull requestMay 30, 2016
This PR was squashed before being merged into the 2.3 branch (closes#18812).Discussion----------Catch \Throwable| Q             | A| ------------- | ---| Branch?       | 2.3, 2.7, 2.8, 3.0| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | Yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aRelated#18765,#15949Commits-------893cf00 Catch \Throwable
@fabpotfabpot mentioned this pull requestMay 30, 2016
@fprochazkafprochazka deleted the 2.3-php7-throwable branchJune 6, 2016 13:03
This was referencedJun 6, 2016
@fabpotfabpot mentioned this pull requestJun 15, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

+1 more reviewer

@patrick-mcdouglepatrick-mcdouglepatrick-mcdougle left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@fprochazka@nicolas-grekas@fabpot@patrick-mcdougle@xabbuh@AyrtonRicardo@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp