RemoveDuplicatedReturnSelfDocblockRector

Remove @return docblock that duplicates the native self/static return type of the current object

 final class SomeClass
 {
-    /**
-     * @return $this
-     */
     public function some(): self
     {
         return $this;
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveDuplicatedReturnSelfDocblockRector;

return RectorConfig::configure()
    ->withRules([
        RemoveDuplicatedReturnSelfDocblockRector::class,
    ]);
SETS:  Dead Code