From 8e82cc9f9b00ae936fef6968b8c666d7aa811a05 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` --- Dumper.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dumper.php b/Dumper.php index 36d990a2..f8ea205a 100644 --- a/Dumper.php +++ b/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; } /**