Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Command/AliceYamlFixturesToPhpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FinalizeClassesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/NamespaceToPSR4Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/PrettyJsonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Command/PrivatizeConstantsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions src/Command/SplitSymfonyConfigToPerPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/Command/DetectUnitTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down