Run Rector on your code to see what it can do for you:

     
     public static function test1(string $path)
     {
-        Mage::getStoreConfig(self::PATH); # this should NOT be renamed
+        Mage::getStoreConfig(\Base::PATH); # this should NOT be renamed
     }
 }
 
 {
     public static function test2(string $path)
     {
-        Mage::getStoreConfig('path');
+        Mage::getStoreConfig(\Base::PATH);
     }
 }
PHP snippet to change
Config  rector.php
Rector version: 2d8958 - released at 2026-03-28 17:45