Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b4c7b2

Browse filesBrowse files
[Yaml] Use CPP in Dumper
1 parent 78aa159 commit 4b4c7b2
Copy full SHA for 4b4c7b2

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed

‎src/Symfony/Component/Yaml/Dumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Dumper.php
+2-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.