
phpdoc_types
¶The correct case must be used for standard PHP types in PHPDoc.
groups
¶Type groups to fix.
Allowed values: a subset of ['alias', 'meta', 'simple']
Default value: ['simple', 'alias', 'meta']
Default configuration.
--- Original
+++ New
<?php
/**
- * @param STRING|String[] $bar
+ * @param string|string[] $bar
*
- * @return inT[]
+ * @return int[]
*/
With configuration: ['groups' => ['simple', 'alias']]
.
--- Original
+++ New
<?php
/**
- * @param BOOL $foo
+ * @param bool $foo
*
* @return MIXED
*/
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the phpdoc_types
rule with the default config.
Using the @Symfony rule set will enable the phpdoc_types
rule with the default config.