Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule phpdoc_typesΒΆ

The correct case must be used for standard PHP types in PHPDoc.

ConfigurationΒΆ

groupsΒΆ

Type groups to fix.

Allowed values: a subset of ['alias', 'meta', 'simple']

Default value: ['simple', 'alias', 'meta']

ExamplesΒΆ

Example #1ΒΆ

Default configuration.

--- Original
+++ New
 <?php
 /**
- * @param STRING|String[] $bar
+ * @param string|string[] $bar
  *
- * @return inT[]
+ * @return int[]
  */

Example #2ΒΆ

With configuration: ['groups' => ['simple', 'alias']].

--- Original
+++ New
 <?php
 /**
- * @param BOOL $foo
+ * @param bool $foo
  *
  * @return MIXED
  */

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Phpdoc\PhpdocTypesFixer