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];
}