diff --git a/src/Command/AliceYamlFixturesToPhpCommand.php b/src/Command/AliceYamlFixturesToPhpCommand.php index e4020a37e..4349a8a1b 100644 --- a/src/Command/AliceYamlFixturesToPhpCommand.php +++ b/src/Command/AliceYamlFixturesToPhpCommand.php @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $phpFilePath = substr($yamlFileInfo->getRealPath(), 0, -5) . '.php'; } - FileSystem::write($phpFilePath, $phpFileContents); + FileSystem::write($phpFilePath, $phpFileContents, null); // remove YAML file unlink($yamlFileInfo->getRealPath()); diff --git a/src/Command/FinalizeClassesCommand.php b/src/Command/FinalizeClassesCommand.php index a3b4ea2cd..bf01b7e05 100644 --- a/src/Command/FinalizeClassesCommand.php +++ b/src/Command/FinalizeClassesCommand.php @@ -143,7 +143,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $finalizedFilePaths[] = PathHelper::relativeToCwd($phpFileInfo->getRealPath()); if ($isDryRun === false) { - FileSystem::write($phpFileInfo->getRealPath(), $finalizedContents); + FileSystem::write($phpFileInfo->getRealPath(), $finalizedContents, null); } } diff --git a/src/Command/NamespaceToPSR4Command.php b/src/Command/NamespaceToPSR4Command.php index aa22510d9..fc050774a 100644 --- a/src/Command/NamespaceToPSR4Command.php +++ b/src/Command/NamespaceToPSR4Command.php @@ -82,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int ); // 4. print file - FileSystem::write($fileInfo->getRealPath(), $correctedContents); + FileSystem::write($fileInfo->getRealPath(), $correctedContents, null); ++$changedFilesCount; } diff --git a/src/Command/PrettyJsonCommand.php b/src/Command/PrettyJsonCommand.php index 49167426d..59b335ad0 100644 --- a/src/Command/PrettyJsonCommand.php +++ b/src/Command/PrettyJsonCommand.php @@ -75,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $prettyJsonContent = Json::encode(Json::decode($jsonContent), JSON_PRETTY_PRINT); - FileSystem::write($jsonFileInfo->getRealPath(), $prettyJsonContent); + FileSystem::write($jsonFileInfo->getRealPath(), $prettyJsonContent, null); } $successMessage = sprintf( diff --git a/src/Command/PrivatizeConstantsCommand.php b/src/Command/PrivatizeConstantsCommand.php index 8bb27a55b..5449b4b53 100644 --- a/src/Command/PrivatizeConstantsCommand.php +++ b/src/Command/PrivatizeConstantsCommand.php @@ -143,7 +143,7 @@ private function processFileInfo(SplFileInfo $phpFileInfo, array $classConstantF '#((private|public|protected)\s+)?const\s+' . $classConstant->getConstantName() . '#', 'private const ' . $classConstant->getConstantName() ); - FileSystem::write($phpFileInfo->getRealPath(), $changedFileContents); + FileSystem::write($phpFileInfo->getRealPath(), $changedFileContents, null); $this->symfonyStyle->writeln( sprintf('Constant "%s" changed to private', $classConstant->getConstantName()) diff --git a/src/Command/SplitSymfonyConfigToPerPackageCommand.php b/src/Command/SplitSymfonyConfigToPerPackageCommand.php index c5cb20570..aadb2a105 100644 --- a/src/Command/SplitSymfonyConfigToPerPackageCommand.php +++ b/src/Command/SplitSymfonyConfigToPerPackageCommand.php @@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $splitConfigFilePath = $outputDir . '/' . $extensionNameString->value . '.php'; - FileSystem::write($splitConfigFilePath, $splitConfigFileContents); + FileSystem::write($splitConfigFilePath, $splitConfigFileContents, null); } // load packages from the output dir @@ -88,7 +88,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int // @todo print config back :) $cleanedConfigContents = $this->printerStandard->prettyPrintFile($stmts); - FileSystem::write($configPath, $cleanedConfigContents); + FileSystem::write($configPath, $cleanedConfigContents, null); return 0; } diff --git a/src/Testing/Command/DetectUnitTestsCommand.php b/src/Testing/Command/DetectUnitTestsCommand.php index b2818471a..1f7cd0d6b 100644 --- a/src/Testing/Command/DetectUnitTestsCommand.php +++ b/src/Testing/Command/DetectUnitTestsCommand.php @@ -57,7 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $filesPHPUnitXmlContents = $this->phpunitXmlPrinter->printFiles($unitTestCasesClassesToFilePaths); - FileSystem::write(self::OUTPUT_FILENAME, $filesPHPUnitXmlContents); + FileSystem::write(self::OUTPUT_FILENAME, $filesPHPUnitXmlContents, null); $successMessage = sprintf( 'List of %d unit tests was dumped into "%s"',