Skip to content

Commit 8e82cc9

Browse files
[Yaml] Use CPP in Dumper
1 parent 96baa90 commit 8e82cc9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Dumper.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@
2323
class Dumper
2424
{
2525
/**
26-
* The amount of spaces to use for indentation of nested nodes.
26+
* @param int $indentation The amount of spaces to use for indentation of nested nodes
2727
*/
28-
private int $indentation;
29-
30-
public function __construct(int $indentation = 4)
28+
public function __construct(private int $indentation = 4)
3129
{
3230
if ($indentation < 1) {
3331
throw new \InvalidArgumentException('The indentation must be greater than zero.');
3432
}
35-
36-
$this->indentation = $indentation;
3733
}
3834

3935
/**

0 commit comments

Comments
 (0)