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

[ExpressionLanguage] throw an SyntaxError instead of an undefined index notice#25323

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

Conversation

@Simperfit
Copy link
Contributor

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

I think this is a bug when the components throws a notice instead of an exception.

it's too early and too dark to see something outside so here is my couch :
img_2915-2

@nicolas-grekasnicolas-grekas changed the base branch frommaster to2.7December 5, 2017 06:20
@nicolas-grekasnicolas-grekas added this to the2.7 milestoneDec 5, 2017
@SimperfitSimperfitforce-pushed thebugfix/throw-an-exception-instead-of-a-notice branch from99b4086 to8822114CompareDecember 5, 2017 06:47
Copy link
Contributor

@srozesroze 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 👍

++$this->position;

if (!isset($this->tokens[$this->position])) {
thrownewSyntaxError('Unexpected end of expression',$this->current->cursor,$this->expression);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we move the safe guard that was already there? I don't see how the first exception could ever be thrown. It looks to me like this was just mistakenly placed before the pointer is advanced.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

done

@SimperfitSimperfitforce-pushed thebugfix/throw-an-exception-instead-of-a-notice branch from8822114 to78abc89CompareDecember 7, 2017 09:26
@fabpot
Copy link
Member

Thank you@Simperfit.

@fabpotfabpot merged commit78abc89 intosymfony:2.7Dec 7, 2017
fabpot added a commit that referenced this pull requestDec 7, 2017
…defined index notice (Simperfit)This PR was merged into the 2.7 branch.Discussion----------[ExpressionLanguage] throw an SyntaxError instead of an undefined index notice| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets |#25214| License       | MIT| Doc PR        | noneI think this is a bug when the components throws a notice instead of an exception.it's too early and too dark to see something outside so here is my couch :![img_2915-2](https://user-images.githubusercontent.com/3451634/33592448-6b514050-d98b-11e7-8086-bc6e6b6e6e82.jpg)Commits-------78abc89 [ExpressionLanguage] throw an SyntaxError instead of letting a undefined index notice
This was referencedDec 15, 2017
This was referencedJan 5, 2018
@SimperfitSimperfit deleted the bugfix/throw-an-exception-instead-of-a-notice branchAugust 6, 2018 14:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

+1 more reviewer

@srozesrozesroze approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

6 participants

@Simperfit@fabpot@sroze@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp