diff --git a/generator/src/Commands/GenerateCommand.php b/generator/src/Commands/GenerateCommand.php index f9bf4232..2b9adc4c 100644 --- a/generator/src/Commands/GenerateCommand.php +++ b/generator/src/Commands/GenerateCommand.php @@ -25,9 +25,12 @@ protected function configure(): void ; } - protected function execute(InputInterface $input, OutputInterface $output): int - { - + protected function execute( + // These aren't actually sensitive, they just fill the + // stack traces with tons of useless information. + #[\SensitiveParameter] InputInterface $input, + #[\SensitiveParameter] OutputInterface $output + ): int { $this->rmGenerated(); // Let's build the DTD necessary to load the XML files. diff --git a/generator/src/Generator/FileCreator.php b/generator/src/Generator/FileCreator.php index 9df9a3af..92c45822 100644 --- a/generator/src/Generator/FileCreator.php +++ b/generator/src/Generator/FileCreator.php @@ -19,8 +19,13 @@ class FileCreator * @param Method[] $functions * @param Method[] $missingFunctions */ - public function generatePhpFile(array $functions, array $missingFunctions, string $path): void - { + public function generatePhpFile( + // These aren't actually sensitive, they just fill the + // stack traces with tons of useless information. + #[\SensitiveParameter] array $functions, + #[\SensitiveParameter] array $missingFunctions, + string $path + ): void { $path = rtrim($path, '/').'/'; $phpFunctionsByModule = []; foreach ($functions as $function) {