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; } /**