Last active
October 15, 2017 09:48
-
-
Save maks-rafalko/fc0a3770b8cba7ca0bd931309441c227 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. spaceship operator | |
- $a <=> $b; | |
+ $b <=> $a; | |
// 2. break; <-> continue; | |
foreach (...) { | |
- break; | |
+ continue; | |
} | |
// 3. zero iteration | |
- foreach ($someVar as ...) { | |
+ foreach ([] as ...) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment