Fork me on GitHub
a Sensio Labs Product

7th Gear (v3.59.3) edition

Rule phpdoc_param_order

Orders all @param annotations in DocBlocks according to method signature.


Example #1

--- Original
+++ New
  * Annotations in wrong order
  * @param int   $a
+ * @param array $b
  * @param Foo   $c
- * @param array $b
 function m($a, array $b, Foo $c) {}


The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.