Skip to content

Released ECS 13.2.2

Latest

Choose a tag to compare

@TomasVotruba TomasVotruba released this 13 Jun 19:46

What's new

✨ New RemoveDeadVarThisFixer

Removes pointless @var $this docblocks above $this calls — they add noise and never help type inference. Added to the docblock level.

 function someFunction()
 {
-    /** @var SomeType $this */
     $this->run();
 }

🐛 Fix AddMissingVarNameFixer for array item types

The fixer now correctly appends the variable name when the @var type is an array shape like int[]:

 function arrayItems()
 {
-    /** @var int[] */
+    /** @var int[] $values */
     $values = [1000];
 }