Skip to content

Commit

Permalink
[Yaml] Use CPP in Dumper
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Sep 23, 2024
1 parent 96baa90 commit 8e82cc9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 8e82cc9

Please sign in to comment.