You are here

function test21 in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test21()
  2. 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test21()
  3. 8.2 coder_sniffer/Drupal/Test/good/good.php \test21()
Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test21()
  2. 8.3 tests/Drupal/bad/bad.php \test21()
  3. 7.2 coder_sniffer/Test/bad/bad.php \test21()
  4. 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test21()
  5. 8.3.x tests/Drupal/bad/bad.php \test21()

PHP 7 type hints are allowed.

Parameters

string $a: Parameter one.

int $b: Parameter two.

File

coder_sniffer/Drupal/Test/good/good.php, line 1507
This file contains all the valid notations for the drupal coding standard.

Code

function test21(string $a, int $b) {
}