Skip to content

Commit 08f580a

Browse files
ViniTouSteveb-p
andauthored
Update src/lib/PhpCsFixer/InternalConfigFactory.php
Co-authored-by: Paweł Niedzielski <[email protected]>
1 parent d686fc6 commit 08f580a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib/PhpCsFixer/InternalConfigFactory.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ public function withRuleSet(RuleSetInterface $ruleSet): self
4343

4444
public function getRuleSet(): RuleSetInterface
4545
{
46-
if (isset($this->ruleSet)) {
47-
return $this->ruleSet;
48-
}
49-
50-
return $this->ruleSet = $this->createRuleSetFromPackage(InstalledVersions::getRootPackage());
46+
return $this->ruleSet ??= $this->createRuleSetFromPackage(InstalledVersions::getRootPackage());
5147
}
5248

5349
/**

0 commit comments

Comments
 (0)