ReplaceHideShowWithPrintedRector
Replace deprecated global hide() and show() functions with direct #printed property assignment on the render element.
-hide($element);
+$element['#printed'] = TRUE;
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\ReplaceHideShowWithPrintedRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
ReplaceHideShowWithPrintedRector::class,
]);