You are here

protected function Pum::test6 in Coder 8.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/Classes/UnusedUseStatementUnitTest.inc \MyNamespace\Depth\Pum::test6()
  2. 8.3.x tests/Drupal/Classes/UnusedUseStatementUnitTest.inc \MyNamespace\Depth\Pum::test6()

Inline var declarations should also get fixed to the full namespace.

File

coder_sniffer/Drupal/Test/Classes/UnusedUseStatementUnitTest.inc, line 81

Class

Pum
Bla.

Namespace

MyNamespace\Depth

Code

protected function test6($x) {

  /** @var VarName $y */
  $y = $x['test'];

  /** @var AliasVarName2 $z */
  $z = $x['test2'];
  return $y;
}