Task #42168
Remove exception for throwing exceptions in oneliners
Status: | Closed | Start date: | 2012-10-19 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Rens Admiraal | % Done: | 0% |
|
Category: | - Documentation - | |||
Target version: | 2.0 beta 1 |
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.
Associated revisions
History
#1 Updated by Karsten Dambekalns almost 3 years ago
- Status changed from New to Under Review
- Assigned To set to Rens Admiraal
- Target version set to 2.0 beta 1
#2 Updated by Rens Admiraal almost 3 years ago
- Status changed from Under Review to Closed