You are here

public static property FunctionCommentSniff::$invalidTypes in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php \Drupal\Sniffs\Commenting\FunctionCommentSniff::invalidTypes
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php \Drupal\Sniffs\Commenting\FunctionCommentSniff::invalidTypes

A map of invalid data types to valid ones for param and return documentation.

Type: array

File

coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php, line 32

Class

FunctionCommentSniff
Parses and verifies the doc comments for functions. Largely copied from PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentSniff.

Namespace

Drupal\Sniffs\Commenting

Code

public static $invalidTypes = array(
  'Array' => 'array',
  'array()' => 'array',
  '[]' => 'array',
  'boolean' => 'bool',
  'Boolean' => 'bool',
  'integer' => 'int',
  'str' => 'string',
  'stdClass' => 'object',
  'number' => 'int',
  'String' => 'string',
  'type' => 'mixed',
  'NULL' => 'null',
  'FALSE' => 'false',
  'TRUE' => 'true',
  'Bool' => 'bool',
  'Int' => 'int',
  'Integer' => 'int',
);