RemoveTypedPropertyNonMockDocblockRector

Remove @var annotation for PHPUnit\Framework\MockObject\MockObject combined with native object type

 use PHPUnit\Framework\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;

 final class SomeTest extends TestCase
 {
-    /**
-     * @var SomeClass|MockObject
-     */
     private SomeClass $someProperty;
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassLike\RemoveTypedPropertyNonMockDocblockRector;

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