8000 Use ctor property promotion · symfony/symfony@4ca1606 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ca1606

Browse files
authored
Use ctor property promotion
1 parent 608df66 commit 4ca1606

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Symfony/Component/Translation/Dumper/XliffFileDumper.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
*/
2222
class XliffFileDumper extends FileDumper
2323
{
24-
private string $extension;
25-
26-
public function __construct(string $extension = 'xlf')
27-
{
28-
$this->extension = $extension;
24+
public function __construct(
25+
private string $extension = 'xlf',
26+
) {
2927
}
3028

3129
/**

0 commit comments

Comments
 (0)
0