Fork me on GitHub
a Sensio Labs Product

Exceptional Exception (v3.93.1) edition

Rule phpdoc_types_no_duplicates

Removes duplicate PHPDoc types.

Examples

Example #1

--- Original
+++ New
 <?php
 /**
- * @param string|string|int $bar
+ * @param string|int $bar
  */

Rule sets

The rule is part of the following rule set:

References

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