StringsAssertNakedRector

String asserts must be passed directly to assert()

 function nakedAssert()
 {
-    assert('true === true');
-    assert("true === true");
+    assert(true === true);
+    assert(true === true);
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php72\Rector\FuncCall\StringsAssertNakedRector;

return RectorConfig::configure()
    ->withRules([
        StringsAssertNakedRector::class,
    ]);
SETS:  PHP 7.2