Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 422 Bytes

pre_increment.rst

File metadata and controls

26 lines (19 loc) · 422 Bytes

Rule pre_increment

Warning

This rule is deprecated and will be removed on next major version.

You should use increment_style instead.

Pre incrementation/decrementation should be used if possible.

Examples

Example #1

--- Original
+++ New
@@ -1,3 +1,3 @@
 <?php
-$a++;
-$b--;
+++$a;
+--$b;