You are here

public function Test::test2 in Coder 8.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test::test2()
  2. 8.3.x tests/Drupal/Commenting/DataTypeNamespaceUnitTest.inc \Foo\Bar\Test::test2()

Inline var data types should be converted.

File

coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.inc, line 28

Class

Test
Test.

Namespace

Foo\Bar

Code

public function test2(array $x) {

  /** @var TestClass $y */
  $y = $x['test'];
  return $y;
}