Skip to content

Commit fac0243

Browse files
committed
use constructor property promotion
1 parent 700ff40 commit fac0243

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

OptionConfigurator.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515

1616
final class OptionConfigurator
1717
{
18-
private string $name;
19-
private OptionsResolver $resolver;
20-
21-
public function __construct(string $name, OptionsResolver $resolver)
22-
{
23-
$this->name = $name;
24-
$this->resolver = $resolver;
18+
public function __construct(
19+
private string $name,
20+
private OptionsResolver $resolver,
21+
) {
2522
$this->resolver->setDefined($name);
2623
}
2724

0 commit comments

Comments
 (0)