RemoveLinkWidgetValidateTitleElementRector

Removes deprecated LinkWidget::validateTitleElement() calls. Validation is now handled by LinkTitleRequiredConstraint on the LinkItem field type (drupal:11.4.0)

-LinkWidget::validateTitleElement($element, $form_state, $form);
 $element['#value'] = $value;

Configure your rector.php:

<?php

use DrupalRector\Drupal11\Rector\Deprecation\RemoveLinkWidgetValidateTitleElementRector;
use Rector\Config\RectorConfig;

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

Other rules in the drupal/core 11.4 set