phpdoc_param_order.rst 454 B

1234567891011121314151617181920212223242526
  1. ===========================
  2. Rule ``phpdoc_param_order``
  3. ===========================
  4. Orders all ``@param`` annotations in DocBlocks according to method signature.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. /**
  14. * Annotations in wrong order
  15. *
  16. * @param int $a
  17. + * @param array $b
  18. * @param Foo $c
  19. - * @param array $b
  20. */
  21. function m($a, array $b, Foo $c) {}