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 2ffd266

Browse filesBrowse 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
Copy full SHA for 2ffd266

File tree

1 file changed

+2
-6
lines changed
Filter options

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.