Find a Rector rule
Find the best Rector rule to solve your problem. Searching through 1097 rules.
Found 1 rule. That's the one: Clear
symfony/asset-mapper
1 match
ImportMapConfigReaderSplitToImportMapEntryRector
symfony/asset-mapper >=7.1
Replace deprecated ImportMapConfigReader::splitPackageNameAndFilePath() with ImportMapEntry::splitPackageNameAndFilePath()
-use Symfony\Component\AssetMapper\ImportMap\ImportMapConfigReader;
-
-[$packageName, $filePath] = ImportMapConfigReader::splitPackageNameAndFilePath('foo/bar.js');
+[$packageName, $filePath] = \Symfony\Component\AssetMapper\ImportMap\ImportMapEntry::splitPackageNameAndFilePath('foo/bar.js');