diff --git a/src/PhpSpreadsheet/Helper/Migrator.php b/src/PhpSpreadsheet/Helper/Migrator.php index b6d5f2a61b..e43307ed4e 100644 --- a/src/PhpSpreadsheet/Helper/Migrator.php +++ b/src/PhpSpreadsheet/Helper/Migrator.php @@ -248,11 +248,12 @@ public function getMapping() private function recursiveReplace($path) { $patterns = [ - '/*.md', '/*.php', + '/*.phpt', + '/*.php3', + '/*.php4', + '/*.php5', '/*.phtml', - '/*.txt', - '/*.TXT', ]; $from = array_keys($this->getMapping()); @@ -260,6 +261,9 @@ private function recursiveReplace($path) foreach ($patterns as $pattern) { foreach (glob($path . $pattern) as $file) { + if (strpos($path, '/vendor/') !== false) { + continue; + } $original = file_get_contents($file); $converted = str_replace($from, $to, $original);