Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ffd266

Browse files
committed
minor #58364 [Yaml] Use CPP in Dumper (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Yaml] Use CPP in `Dumper` | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 4b4c7b2 [Yaml] Use CPP in `Dumper`
2 parents 78aa159 + 4b4c7b2 commit 2ffd266

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Component/Yaml/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)