From 4b4c7b217e64e658c1dde93599097ba62f08f91a Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Mon, 23 Sep 2024 15:32:32 +0200 Subject: [PATCH] [Yaml] Use CPP in `Dumper` --- src/Symfony/Component/Yaml/Dumper.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/Yaml/Dumper.php b/src/Symfony/Component/Yaml/Dumper.php index 36d990a2abdda..f8ea205a62e03 100644 --- a/src/Symfony/Component/Yaml/Dumper.php +++ b/src/Symfony/Component/Yaml/Dumper.php @@ -23,17 +23,13 @@ class Dumper { /** - * The amount of spaces to use for indentation of nested nodes. + * @param int $indentation The amount of spaces to use for indentation of nested nodes */ - private int $indentation; - - public function __construct(int $indentation = 4) + public function __construct(private int $indentation = 4) { if ($indentation < 1) { throw new \InvalidArgumentException('The indentation must be greater than zero.'); } - - $this->indentation = $indentation; } /**