Task #42168

Remove exception for throwing exceptions in oneliners

Added by Rens Admiraal about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
- Documentation -
Target version:
Start date:
2012-10-19
Due date:
% Done:

0%

Estimated time:

Description

We allowed using a throw statement in a oneline if statement like:

if (TRUE) throw new \Exception();

We don't allow this anymore, so the exception should be removed. Everything should now be wrapped in curly braces.

#1

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from New to Under Review
  • Assignee set to Rens Admiraal
  • Target version set to 2.0 beta 1
#2

Updated by Rens Admiraal about 9 years ago

  • Status changed from Under Review to Closed

Also available in: Atom PDF