aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Assignment by reference formatting #12

Open aik099 opened 10 years ago

aik099 commented 10 years ago

The =& should look exactly like that, so any of below is wrong:

$a = & $b;
$a = &$b;

Some info on topic: https://github.com/wimg/PHPCompatibility/tree/master/Sniffs/PHP