From 0d235ec955754c765249f10892d2806f74cc318c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 25 Apr 2022 18:51:06 +0000 Subject: [PATCH] Update FileCreator.php --- generator/src/FileCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/src/FileCreator.php b/generator/src/FileCreator.php index d7f5dbae..ae2b9625 100644 --- a/generator/src/FileCreator.php +++ b/generator/src/FileCreator.php @@ -104,7 +104,7 @@ public function generateRectorFile(array $functions, string $path): void use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -# This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions +// This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); @@ -119,7 +119,7 @@ public function generateRectorFile(array $functions, string $path): void fwrite($stream, " '$functionName' => 'Safe\\$functionName',\n"); } - fwrite($stream, "]]]);\n};\n"); + fwrite($stream, " ]]]);\n};\n"); fclose($stream); }