Fork me on GitHub
a Sensio Labs Product

Brazilian Kangaroo (v3.17.0) edition

Rule phpdoc_param_order

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

Examples

Example #1

--- Original
+++ New
 <?php
 /**
  * Annotations in wrong order
  *
  * @param int   $a
+ * @param array $b
  * @param Foo   $c
- * @param array $b
  */
 function m($a, array $b, Foo $c) {}
The logo is © 2010-2022 Sensio Labs