Task #42168

Remove exception for throwing exceptions in oneliners

Added by Rens Admiraal almost 3 years ago. Updated almost 3 years ago.

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

Revision 580b9632
Added by Rens Admiraal almost 3 years ago

[TASK] Remove oneline exception for throw statements

Removes the exception for throwing exceptions in oneliners, which is
not allowed anymore.

Change-Id: Icac75a02c9ecf8a211e66c45768a63e848ac2190
Resolves: #42168
Related: #39977
Releases: 1.2

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

Also available in: Atom PDF