PassRector

Fixes deprecated AssertLegacyTrait::pass() calls

-// Check for pass
-$this->pass('The whole transaction is rolled back when a duplicate key insert occurs.');
+// Check for pass

Configure your rector.php:

<?php

use DrupalRector\Drupal9\Rector\Deprecation\PassRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        PassRector::class,
    ]);