Changes heredoc/nowdoc that contains closing word to safe wrapper name
-$value = <<<A
+$value = <<<A_WRAP
A
-A
+A_WRAP
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php73\Rector\String_\SensitiveHereNowDocRector;
return RectorConfig::configure()
->withRules([
SensitiveHereNowDocRector::class,
]);